JS: Apostrophe Quoted String
Apostrophe quoted string
String can be created by bracketing text with 'U+27: APOSTROPHE'.
Use \' to embed a APOSTROPHE.
// APOSTROPHE quoted string console.log('my cat'); // my cat console.log('john\'s cat'); // john's cat
Difference between apostrophe and quotation mark quoted string
There's basically no difference, except that if you need to embed a APOSTROPHE or QUOTATION MARK , you need to escape it.