My reading notes
JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Apache CouchDB and Adobe Acrobat. JavaScript is a prototype-based, multi-paradigm, single-threaded, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles.
var
let
const
var
in JS?
var
keyword has been used in all of JS code from 1995 to 2015. The let
and const
keywords were added in 2015. If you want your code to run in older browsers, you must use var
const
in JS?
const
. If you think the value of the variable can change use let.