Booleans can only have two values: true or false. Example var x = 5; var y = 5; var z = 6; (x == y) // Returns true (x == z) // Returns false Booleans are often used in conditional testing. You will learn more about conditional testing later in this tutorial.
A string (or a text string) is a series of characters like “John Doe”. Strings are written with quotes. You can use single or double quotes: Example var carName = “Volvo XC60”; // Using double quotes var carName = ‘Volvo XC60′; // Using single quots You can use quotes inside a string, as long as they don’t match the quotes surrounding […]