Test yourself under real exam conditions: 50 timed questions, 60 on the clock, pass mark 70%%. Instant score with a full review of everything you got wrong. Free — no account needed.
Exam details
JavaScript is a high-level, interpreted programming language primarily used for web development to make web pages interactive. It is the scripting language of the Web, supported by all modern browsers, and follows the ECMAScript specification.
JavaScript was created by Brendan Eich in 1995 while working at Netscape. It was initially called Mocha, then LiveScript, before being renamed JavaScript.
ECMAScript (ES) is the standardized scripting language specification upon which JavaScript is based. The latest stable version is ES2023, with JavaScript implementing all ES features plus browser-specific ones.
Use the <script> tag in the HTML, either inline with code between tags or externally via <script src="script.js"></script>. Place it before the closing </body> tag for better performance.
console.log() outputs a message to the browser's console for debugging and logging. It can log multiple arguments of any type, like console.log('Hello', 42);.