Last revised Jan 30, 2025, 7:00 pm
<html> <body> <head> <title> <link> <script> <meta> <h1> <h2> <p> <ul> <ol> <li> <table> <tr> <th> <td> <input> <label> <button> <textarea> <span> <option> <img> <a>
alt href id lang rel src type value
innerHTML src value
color background-color test-align font-family font-size font-weight font-style width height
font border margin padding
red lime blue yellow aqua magenta maroon green navy olive teal purple white black gray silver
else false for function if new return this true typeof var while
boolean number object string undefined
document.writeln(Number.MAX_VALUE); // Output: 1.7976931348623157e+308
Arithmetic: + - * / ** % Comparison: == === < <= > >= != !== Logical: && || Assignment: = += -= *= /= %= Miscellaneous: . [ ] ( ) { } typeof new
if..else if..else if..else while loop traditional for loop modern for loop
isFinite isNaN parseFloat parseInt
length
concat pop push shift toString unshift
length
charAt concat endsWith includes indexOf lastIndexOf repeat startsWith substr substring toLowerCase toUpperCase trim
abs ceil floor max min random round
document.getElementById
addEventListener
innerHTML value
click load
JSON.stringify JSON.parse Example: kids = [ {"name": "Alice", "age" : 11}, {"name": "Bob", "age" : 9} ];