Strings are very important in JavaScript
JavaScript strings are for storing and manipulating text.
They must between double quotes or quotes.
Like this:
let OS = "Microsoft Windows";
let CPU = 'Inter Core I9';
1: Also you can't use "double quotes" in strings between "double quotes"
2: Also you can't use 'quotes' in strings between 'quotes'
2: Also you can't use 'quotes' in strings between 'quotes'
//Incorrect !!!!!!!!!!!!!!!!
let OS = "Microsoft "Windows"";
//Incorect !!!!!!!!!!!!!!!!!
lets CPU = 'Inter 'CoreI9';
//Incorect !!!!!!!!!!!!!!!!!
But you can use like this:
let OS = "Microsoft 'Windows' is ....";
// OR
let CPU = '"AMD" is ... "INTEL" is ...';
Sample1: string + string
JavaScript/011-JS-Strings/001
Sample2: Long multiline
JavaScript/011-JS-Strings/002
Sample3: Compared string objects
JavaScript/011-JS-Strings/003
Sample4: Quotation marks
JavaScript/011-JS-Strings/004
Sample5: Backslash
JavaScript/011-JS-Strings/005
Sample6: Multiline \n and br
JavaScript/011-JS-Strings/006
Sample7: Long codes
JavaScript/011-JS-Strings/007
Sample8: Long codes2
JavaScript/011-JS-Strings/008
Sample9: String length
JavaScript/011-JS-Strings/009
Sample10: String replace
JavaScript/011-JS-Strings/010