https://www.w3schools.com/js/default.
asp
Can Change HTML Content
document.getElementById("demo").innerHTML = "Hello JavaScript";
document.getElementById('demo').innerHTML = 'Hello JavaScript';
Where To
Placing scripts at the bottom of the <body> element improves the display speed, because script
compilation slows down the display.
JavaScript Output
Using document.write() after an HTML document is loaded, will delete all existing HTML:
window.alert()
console.log()
Fixed values are called literals. Variable values are called variables.
JavaScript Arithmetic Operators
Arithmetic operators are used to perform arithmetic on numbers:
Description
Addition
Subtraction
Multiplication
Exponentiation (ES2016)
Division
Modulus (Division Remainder)
Increment
Decrement
https://www.w3schools.com/js/js_datatypes.asp
https://javascript.info/
Operator
+
-
*
**
/
%
++
--