Javascript Notes
Javascript Notes
<script> js </script>
A computer program is a list of "instructions" to be "executed" by a comp
In a programming language, these programming instructions are called stat
A JavaScript program is a list of programming statements.
Semicolons(;) separate JavaScript statements.
JavaScript ignores multiple spaces. You can add white space to your scrip
A good practice is to put spaces around operators ( = + - * / ):
If a JavaScript statement does not fit on one line, the best place to bre
JavaScript statements can be grouped together in code blocks, inside curl
JavaScript statements often start with a keyword to identify the JavaScri
Comments
//xyz Single line comment
/* xyz */ Multi line comment
Keywords
JavaScript statements often start with a keyword to identify the JavaScri
Variables
4 Ways to declare a JavaScript Variable
var
let
const
using nothing
ecuted" by a computer.
s are called statements.