Literals & types

undefined; null; true; false;
123; 3.14; 0x10;
"abc"; 'xyz';
({a:1, b:2});
[1, 2, 3];

Variables

Operators

Arithmetic (+ - * / % **), bitwise, comparison, loose/strict equality, logical, ternary, and typeof.

Control flow

if/else, for, while, do...while, switch, break, continue, try/catch/finally, throw, return.

Functions & closures

// Closure example
function a() {
  let x = 1;
  function b() {
    let y = 2;
    return function c() { return x + y; };
  }
  return b();
}
a()(); // 3

// Loop closure
let funcs = [];
for (let i = 0; i < 3; i++) {
  funcs[i] = function() { return i; };
}
funcs[0](); // 0

Core built-ins (no extensions)

String methods

length, charCodeAt, charAt, indexOf, substring

Array methods

push, pop, shift, slice, reverse, sort, splice, forEach, map, every, some, find, findIndex, reduce, indexOf, join

Unsupported (current)

FeatureNotes
var, class, newParse / runtime error
this, delete, withNot implemented
yield, void, in, instanceofNot implemented
ES modules, Promise, prototype chainNot supported

Common errors

parse error, ; expected, type mismatch, 'xxx' not found, oom, C stack — most include at line N col M.