This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Usage of quotes as wrappers of string literals an within those string literals | |
var name = 'Tobias'; // String literal wrapped in single quotes. | |
var planet = "Earth"; // String literal wrapped in double quotes. | |
// Usage of single quotes within a string literal wrapped in double quotes. | |
var firstQuote = "They said the product is 'good'."; | |
// Usage of double quotes within a string literal wrapped in single quotes. | |
var secondQuote = 'They said the product is "good".'; |