What JavaScript does
What JavaScript does
JavaScript is a programming language used to express logic and behavior. In browsers it can respond to events, update the DOM and make network requests. JavaScript also runs outside browsers in environments such as Node.js.
Try it yourself
Change the example, run it, and explain the result in your own words. Then create one variation of your own.
Key idea
Use the example as a starting point, not something to memorize. Practise, inspect the result and make small improvements.
Code example
console.log("Hello, JavaScript!");