JavaScript

What is it?

JavaScript is a dynamic programming language originally developed for web browsers. It enables interactive web pages and is now also used server-side (Node.js). JavaScript is essential for modern web development and supports both functional and object-oriented programming.

Practical example

A simple click handler: document.querySelector("button").addEventListener("click", () => { alert("Hello KdG!"); }); This shows an alert when a user clicks a button.

Test your knowledge

What is JavaScript primarily used for?

Ask Lex
Lex knows the context of this term and can give targeted explanations, examples, and extra context.
Tip: Lex replies briefly in the widget. For more detail, go to full screen mode.

Quick links