JS: Apostrophe Delimiter String
APOSTROPHE Delimiter
APOSTROPHE Delimiter (U+27: APOSTROPHE) can also be used.
Use \' to embed a APOSTROPHE.
// APOSTROPHE quoted string console.log('my cat'); // my cat // with escape 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.
JavaScript. String
- JS: String Overview
- JS: Quote String
- JS: Apostrophe Delimiter String
- JS: Template String
- JS: String Escape Sequence
- JS: Unicode Escape Sequence
- JS: String Operations
- JS: Iterate String
- JS: String Code Unit
- JS: Count Chars in String 📜
- JS: Tagged Template String
- JS: Regular Expression Functions
- JS: Convert String and Number
- JS: String (class)
- JS: String Constructor
- JS: String.prototype