Skip to content
Sign upLog in

Getting an error message

Profile icon

I keep getting this error message while trying to write a mad lib with a button to click.
typeError: Cannot read properties of null (reading 'value')
at printmadlib (/script.js:4:64)
at HTMLButtonElement.onclick (/:19:49)

Any Ideas would be great!

You are viewing a single comment. View All
Profile icon

IDs are case sensitive. Your ID in the HTML is all lower case, but in the JavaScript code you capitalized the first letter.