JavaScript instructions are used to program the behaviour of web pages.
Some uses of JavaScript is to:
- add interactivity to websites
- to validate form data before it is submitted to the server.
JavaScript programs are downloaded (or embedded in html files) and then run on the user’s computer.
Along with other languages like C and PHP, JavaScript is a “curly-bracket language”. You need to careful with the brackets { } and semi-colons.