Please enable JavaScript.
Coggle requires JavaScript to display documents.
JAVASCRIPT ((These all work how you might guess:, console.log(3 + 4); //…
JAVASCRIPT
-
Strings — Any grouping of keyboard characters (letters, spaces, numbers, or symbols) surrounded by single quotes ('Hello') or double quotes ("World!"). In the example above, 'New York City' is a string.
Numbers — Any number, including numbers with decimals: 4, 1516, .002, 23.42. In the example above, 40.7 is a number.
Booleans — Either true or false, with no quotations. In the example above, true is a boolean.
-
-
-
-
-
Properties- console.log('Hello'.length); o length representa a quantidade de caracteries inserida dentro das aspas incluindo os espaços
-
-
-
String Interpolation- let favoriteAnimal = 'cat';
console.log('I own a pet ' + favoriteAnimal + '.');