Description:
JavaScript is used to give HTML websites a functionality.
For example you can define what should happen, when you clicked a button.
Example:
Printing "Hello World" in terminal.
console.log("Hello World");
Example:
Button click event.
var button = document.querySelector(".btn");
button.addEventListener("click", () => {
console.log("Button clicked!");
});