Skip to content

Instantly share code, notes, and snippets.

@jaamaalxyz
Last active March 1, 2018 18:00
Show Gist options
  • Save jaamaalxyz/46f08efaf5782cd50c75f4b9b24eff26 to your computer and use it in GitHub Desktop.
Save jaamaalxyz/46f08efaf5782cd50c75f4b9b24eff26 to your computer and use it in GitHub Desktop.
var singleQuotes = 'This is a string in single quotes.';
var doubleQuotes = "This is a string in double quotes.";
let txtOne = "I'm from Dhaka, Bangladesh"; // I'm from Dhaka, Bangladesh
let txtTwo = 'I'm a programmer'; // SyntaxError: Unexpected identifier
// If you want to pass this Error let's do this way
let txtTwo = 'I\'m a programmer';
console.log(txtTwo); // I'm a programmer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment