JS - Use apostrophe in a string

0 votes
182 views
added Jul 9, 2018 in Javascript by LC Marshal Captain (25,790 points)
edited Jul 12, 2018 by LC Marshal
//Use double quote instead.

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

//outputting correctly
console.log("halo, that's my wife!"); 
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...