JavaScript: make pages do things
JavaScript adds behaviour: it reacts to clicks, calculates, and changes the page. These lessons run in your browser. Use console.log(...) to print a value; Run shows everything printed.
Lessons go in order, from easiest to harder.
- 1Printing with console.logβ done
- 2Variables: let and constβ done
- 3Data types: numbers, strings, booleansβ done
- 4Operatorsβ done
- 5Decisions with if and elseβ done
- 6Loops: for and whileβ done
- 7Functionsβ done
- 8Arrow functionsβ done
- 9Arraysβ done
- 10Objectsβ done
- 11Array methods: map and filterβ done
- 12Events in the browserβ done
- 13Errors and try/catchβ done
- 14Mini project: a simple calculatorβ done