Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

JS - Use apostrophe in a string

0 votes
7 views
added Jul 9 in Javascript by LC Marshal Lieutenant (14,570 points)
edited Jul 12 by LC Marshal
//Use double quote instead.

//error
//console.log('halo, that's my wife!'); 

//outputting correctly
console.log("halo, that's my wife!"); 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...