@jlward73 many times the content pasted into the forum does not use a code wrapper.
when this happens, the content is assumed to be word processing ( ms word or like), and the double and single quotes are changed to match (curved)
zoom in on these two sets of quotes
’
"
"'
JavaScript uses text mode, (quotes are vertical not curved) and freaks out when encountering the word processing quotes, as they don’t match anything expected.