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

Array.prototype.keys: an index iterator

keys returns an iterator of consecutive indexes from zero, including indexes that are holes.

Intermediate · ECMAScript 2026 draft; example target: Node.js 24.22.2
JavaScript

Array.prototype.map: transforming elements

map calls a callback for existing elements and creates a new result array with the same length.

Basic · ECMAScript 2026 draft; example target: Node.js 24.22.2
JavaScript

Array.prototype.push: appending at the end

push appends any number of values from the current length and returns the receiver’s new length.

Basic · ECMAScript 2026 draft; example target: Node.js 24.22.2
JavaScript

Array.prototype.sort: stable in-place ordering

sort orders the elements of the same array, optionally with a comparison function, and returns that array object.

Intermediate · ECMAScript 2026 draft; stable ordering required since ECMAScript 2019; example target: Node.js 24.22.2
JavaScript

Array.prototype.toReversed: a reversed copy

toReversed creates a reversed shallow copy without changing the receiver and materializes holes as undefined.

Basic · ECMAScript 2023; example target: Node.js 24.22.2
JavaScript

Array.prototype.toSorted: a stably sorted copy

toSorted stably sorts a new dense array while leaving the receiver and its original order unchanged.

Intermediate · ECMAScript 2023; stable ordering required; example target: Node.js 24.22.2
JavaScript

Array.prototype.unshift: adding at the front

unshift shifts existing indexes right, inserts its arguments at the front, and returns the receiver’s new length.

Basic · ECMAScript 1 onward; example target: Node.js 24.22.2
JavaScript

Array.prototype.values: value iterator

values returns a live iterator that reads successive indexed values, including undefined produced by holes.

Basic · ECMAScript 2015 onward; example target: Node.js 24.22.2
JavaScript

BigInt64Array: signed 64-bit integers

BigInt64Array stores BigInt values as signed 64-bit integers and wraps them modulo 2^64.

Intermediate · ECMAScript 2020 onward; example target: Node.js 24.22.2
JavaScript

BigUint64Array: unsigned 64-bit integers

BigUint64Array stores BigInt values as unsigned 64-bit integers and wraps them modulo 2^64.

Intermediate · ECMAScript 2020 onward; example target: Node.js 24.22.2
JavaScript

DataView: explicit binary format access

DataView reads and writes multibyte values in a buffer with chosen byte order and no alignment requirement.

Intermediate · ECMAScript 2015 onward; resizable ArrayBuffer behavior from ECMAScript 2024; example target: Node.js 24.22.2
JavaScript

Date.now: current timestamp

Date.now returns current wall-clock time as an integer number of milliseconds since the Unix epoch in UTC.

Basic · ECMAScript 5 (2009) onward; example target: Node.js 24.22.2
JavaScript

Date.parse: date text to timestamp

Date.parse converts date text to epoch milliseconds or returns NaN when the text is unrecognized or outside the supported range.

Intermediate · ECMAScript 1 onward; current date-time string rules; example target: Node.js 24.22.2