Created
May 13, 2023 15:04
-
-
Save suhailgupta03/6623c24b056ae51660a89272e0494ae8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// The following is an incorrect way | |
// to represent multiple single quotes | |
// in a string which already starts with a | |
// single quote | |
// var singleQuoteString = 'suhail 'gupta''; | |
// console.log(singleQuoteString); | |
var myNewVariable = "suhail 'gupta'"; | |
console.log(myNewVariable); | |
var anotherVariable = '"suhail gupta"'; | |
console.log(anotherVariable); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment