𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 𝗕𝗮𝘀𝗶𝗰𝘀 You can use JavaScript to calculate, manipulate and validate data. It updates and changes HTML and CSS.
JavaScript has a printing statement: console.log(50) You can declare variables in 4 ways. Here are some rules for JavaScript:
- Names can be short like x, y, z
- Names can be descriptive like age, sum, carName
- Names can contain letters, digits, underscores, and dollar signs
- JavaScript is case sensitive, so X is different from x
- You cannot use JavaScript keywords as names
JavaScript has 8 datatypes. The let keyword was introduced in 2015. Variables declared with let have block scope. You must declare variables with let before use. You cannot redeclare variables with let in the same scope.
The const keyword was introduced in 2015. Variables defined with const cannot be redeclared. Variables defined with const cannot be reassigned. Variables defined with const have block scope. Source: https://dev.to/karthika_jasinska_443e83f/javascript-46g7