Skip to content

Instantly share code, notes, and snippets.

@mahadiul-hasan
Last active November 2, 2020 13:21
Show Gist options
  • Select an option

  • Save mahadiul-hasan/11bb89eca142531b589a3db82e237f7c to your computer and use it in GitHub Desktop.

Select an option

Save mahadiul-hasan/11bb89eca142531b589a3db82e237f7c to your computer and use it in GitHub Desktop.
JS core concept strings, numbers, arrays
var string1 = 'This is string one';
var string2 = "this is string two";
var string3 = `This is string three`;
// use single quotes inside single-quoted strings or double quotes inside double-quoted strings
var escString1 = 'it\'s okay';
var escString2 = "He said \"Goodbye\"";
var escString3 = 'She replied \'Calm down, please\'';
//
var txt = "Welcome to JavaScript Turorial";
var txtLength = txt.length;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment