Also called: JS, ECMAScript, ES6, vanilla JS
In plain English
Not related to Java despite the name. The official standard is called ECMAScript (ES2015, ES2024 …).
Example
A few lines of JavaScript make the mobile menu open and close.
In code
document.querySelector('#menu-btn').addEventListener('click', () => {
document.body.classList.toggle('menu-open');
});
Related terms
Added 2026-11-30 · Last reviewed 2026-11-30