Data types are the building blocks of programming. Primitive data types include numbers, strings, booleans, and BigInts. BigInts are used for larger numbers. Backticks are extended functionality quotes that allow us to embed variables and expressions into a string. For example, we can embed a variable by wrapping it in ${…}, such as let name = "John"; alert( `Hello, ${name}!` ); // Hello, John! We can also embed an expression, such as alert( `the result is ${1 + 2}` ); // the result is 3.
Top Highlights
dynamically typed
There are eight basic data types in JavaScript.
Backticks are “extended functionality” quotes.
All other types are called “primitive”
The expression inside ${…} is evaluated and the result becomes a part of the string.
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.