Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / JavaScript

Knowledge base — JavaScript

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 1003

JavaScript

Collections: stack, queue and LRU algorithms

A stack processes elements in LIFO order, a queue uses FIFO, and an LRU cache evicts the least recently used entry. JavaScript implementations can use Array and Map, but must deliberately handle ordering, operation costs and missing values.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Comments and documentation

Comments describe code intent without executing their contents. Learn // and /* ... */ syntax, the /** ... */ documentation convention, and how line terminators can affect program parsing.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Conditions and conditional control flow

Conditions let you choose which code runs based on an expression's Boolean interpretation. Learn if, else if, and else, truthy/falsy conversion, and the distinction between a conditional statement and the ?: operator.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Shallow and deep copying of objects

Assigning an object does not create a copy. A shallow copy creates a new outer object but shares nested objects. A deep copy also recreates nested objects within the supported structure.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Data processing pipelines

A data processing pipeline connects reading, validation, filtering, transformation, and writing stages. When exchanging JSON, graph references and correctly escaped paths need separate attention.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Debounce and throttle: controlling function calls

Debounce postpones execution until a burst of calls becomes quiet, while throttle limits execution frequency during a burst. Distinguish leading and trailing variants: they determine whether the first call, the last call, or both are retained.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

DOM — Document Object Model

The DOM represents a document as a tree of objects that JavaScript can read and modify. DOM manipulation includes creating, attaching, updating, and removing nodes. It is an interface supplied by the browser environment, not ECMAScript language syntax.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Error and exception handling

Error handling lets you respond to exceptions without mixing them with a function's normal result. Learn throw, try, catch, and finally, and distinguish synchronous exceptions from Promise rejections.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Event loop: tasks and microtasks

The event loop coordinates script execution and event handling in a browser. Distinguishing tasks, microtasks, and rendering opportunities helps you predict the order of asynchronous code.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Browser events and propagation

Events let code respond to user actions and changes in page state. Learn capture, target and bubbling, distinguish canceling default behavior from stopping propagation, and understand lifecycle, visibility, scrolling, resizing and input events.

Intermediate · Web APIs defined by web standards, not ECMAScript editions. Check support in target browsers; Node 24 in the repository does not establish browser API support.
JavaScript

Expressions and operators

Expressions compute values, while operators specify operations on operands. Learn precedence, assignment, comparisons, type conversion, and short-circuit evaluation.

Basic · ECMAScript; feature availability varies by edition. Exponentiation (`**`) was introduced in ECMAScript 2016, and nullish coalescing (`??`) was introduced in ECMAScript 2020.
JavaScript

Filtering and transforming arrays

filter selects elements that satisfy a condition, while map transforms their values. By default, chaining them creates a new array without directly changing the input array.

Basic · ECMAScript: Array.prototype.filter, Array.prototype.map, and arrow-function callback syntax are language features, not Web APIs. Node 24 in the repository does not establish browser support.
JavaScript

Finite-state machines

A finite-state machine describes behavior through states and input-dependent transitions. The CSV parsing state machine example shows how explicit state distinguishes a field separator from a comma inside quotes and helps detect invalid input.

Intermediate · A finite-state machine is a design pattern, not a versioned JavaScript feature. The CSV parser uses ECMAScript 2015 features and requires no browser APIs. The example's separate logging call uses host-provided console.log.
JavaScript

Forms and validity

Use `input` to react to edits and `submit` to handle a form submission after normal validation succeeds. `HTMLFormElement` also provides methods for explicitly checking form validity.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Functional programming

Functional programming builds computations from small functions while limiting mutation and side effects. JavaScript supports this style through functions passed as values and methods such as filter, map, and reduce, but does not enforce function purity.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Functions and parameters: declarations and hoisting

A function groups code for repeated calls. Learn the difference between parameters and arguments, how return values work, and how hoisting lets you call a declared function before its position in the source.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Graphics and media

Graphics and media are applications of JavaScript for processing images, audio, and video. Distinguish computations performed by ECMAScript from host facilities that display or play the resulting data.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Internationalization (i18n)

Internationalization prepares a program for different languages and regional conventions. In JavaScript, Intl provides locale-sensitive operations, but it does not automatically translate application content.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Input, output, and serialization

Input supplies data to a program, and output sends results outside it. Learn the difference between environment-provided I/O and converting JavaScript values to JSON text and back.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Iterators and generators

An iterator exposes successive results through next(), while an iterable supplies an iterator through Symbol.iterator. A generator makes both mechanisms easier to implement using function* and yield.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Linear search

Linear search checks array elements in order until it finds a match or reaches the end. It needs no sorting; the demonstrated function returns the index of the first match or -1.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Loops and iteration

Loops repeat statements according to a condition or successive elements. Learn how for, while, do...while, for...of, and for...in differ, and how break and continue control execution.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Memory: object sharing and copies

Assigning an object does not copy it. Learn the difference between an alias, a shallow copy, and copying a selected branch, and why const does not prevent property mutations.

Basic · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
JavaScript

Module loading and code splitting

Modules form a dependency graph. Static import declares a dependency, while import() lets code request a module at runtime. Splitting code into separately loaded pieces depends on the environment and tooling, not on JavaScript syntax alone.

Intermediate · ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support