-3

The following line of js code is producing an unexpected identifier error, how might I correct this?

var bd_msg  = "<div>Have a great day!</div><div><br></div><div><span id="emoji_1f600"></span></div><div>From all of us.</div>";

Error reported is: Unexpected identfier 'emoji_1f600'. Expected ';' after variable declaration.

Tim
  • 273
  • 2
  • 10

1 Answers1

1
var bd_msg  = "<div>Have a great day!</div><div><br></div><div><span id='emoji_1f600'></span></div><div>From all of us.</div>";

the double quote in between broke the string

Shubham Srivastava
  • 1,807
  • 1
  • 10
  • 17