Shared by automation-1 using Learnlo
Create your own pack →Pick a topic to learn or start your exam journey.
0/15 topics mastered
JavaScript is a cross-platform, object-oriented scripting language used to make webpages interactive, enabling features like animations, clickable buttons, and popup menus. It runs inside a host environment (most commonly a web browser) and can be connected to objects in that environment to provide programmatic control—such as modifying the Document Object Model (DOM) and responding to user events (mouse clicks, form input, navigation). JavaScript also has server-side variants such as Node.js, which allow websites to do more than serve static files, including tasks like realtime collaboration and handling custom requests from browser code. JavaScript is standardized through ECMAScript, an open specification maintained by Ecma International (ECMA-262, also approved by ISO). The ECMAScript specification defines how the language should work, while the DOM is standardized separately by W3C/WHATWG. For learning and writing code, JavaScript documentation is intended for programmers, whereas the ECMAScript specification is primarily for implementers of standards-compliant engines. To get started, you only need a modern web browser and its JavaScript console, which lets you run JavaScript directly on the current page for quick experimentation.
0/2 modes complete
Client-side JavaScript extends the core JavaScript language with browser-specific objects and APIs that allow scripts to control webpages and their Document Object Model (DOM). Through these capabilities, JavaScript can create, modify, and position HTML elements, change how a page looks, and respond to user interactions such as mouse clicks, form input, and page navigation. The browser acts as the host environment, exposing document objects and events to JavaScript code. The DOM is separate from the ECMAScript language specification: ECMAScript defines the standardized JavaScript language, while the W3C and WHATWG define how HTML document objects are represented and accessed. Modern browsers such as Firefox, Chrome, Edge, and Safari provide the tools needed to run client-side JavaScript, including developer consoles for testing code. Client-side JavaScript differs from server-side JavaScript, such as Node.js, which runs outside the browser and provides server-related features like database communication and file manipulation.
0/2 modes complete