Introduction
JavaScript is used a lot because it helps make websites interactive and works on almost every device with a web browser.
When you want to make buttons on a website do something when clicked.
When you want to update parts of a webpage without reloading the whole page.
When you want to create games or animations that run in the browser.
When you want to build web apps that work on phones and computers.
When you want to talk to servers to get or send data without leaving the page.