Escaping in Atom


#1

console.log('Is Mark’s BMI higher than John’s? ’ + markHigherBMI);

Hi, the apostrophe after Mark and John does not work. Is there an escape character that one should use?


#2

This is unrelated to Atom. To escape the single quote in JavaScript, use \'.


#3

Thank you!