openskills.info
JavaScript Fundamentals logoCourse Preview

JavaScript Fundamentals

JavaScript is a programming language used to make web pages interactive and to build applications in browsers, servers, and other runtimes. A host supplies capabilities such as the DOM, files, or networking around the core language.

itProgramming languages

JavaScript Fundamentals

JavaScript is a dynamic programming language standardized as ECMAScript. The language defines values, expressions, statements, functions, objects, modules, and asynchronous primitives. A host environment supplies the capabilities that connect a program to the outside world. Browsers provide the Document Object Model, events, storage, and network APIs. Server runtimes provide their own file, process, and networking APIs.

This boundary matters. Array, Promise, and Map belong to JavaScript. document, fetch, and file-system functions come from a host. Code that uses only language features is broadly portable. Code that calls a host API needs a compatible environment.

How a program runs

A JavaScript engine parses source text, creates bindings for declarations, and evaluates statements in an execution context. Each function call creates another execution context. Lexical environments connect identifier names to bindings, which is why a nested function can still access variables from the scope where it was created.

JavaScript runs one statement at a time within an execution thread. A host can perform work outside that thread, then schedule callbacks or promise reactions. The event loop is a host mechanism, not a language statement. Long synchronous work delays other scheduled JavaScript on the same thread.

Continue the course

This section is part of the paid course.

See pricing to subscribe, or log in if you already have access.

Where this skill leads

Relevant careers

See how this topic contributes to broader role-level skill maps.

Sources