Skip to content
Sign upLog in
← Back to Community

Getting an error message

Profile icon
TraceyWhite

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!

Voters
Profile icon
TraceyWhite
Comments
hotnewtop
Profile icon
SixBeeps

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