字面量与类型

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

变量

运算符

算术、位运算、比较、宽松/严格相等、逻辑、三元运算符与 typeof

控制流

if/elseforwhiledo...whileswitchbreakcontinuetry/catch/finallythrowreturn

函数与闭包

// 闭包示例
function a() {
  let x = 1;
  function b() {
    let y = 2;
    return function c() { return x + y; };
  }
  return b();
}
a()(); // 3

// 循环闭包
let funcs = [];
for (let i = 0; i < 3; i++) {
  funcs[i] = function() { return i; };
}
funcs[0](); // 0

核心内置(不含扩展)

String 方法

lengthcharCodeAtcharAtindexOfsubstring

Array 方法

pushpopshiftslicereversesortspliceforEachmapeverysomefindfindIndexreduceindexOfjoin

不支持(当前版本)

特性说明
varclassnew解析/运行时报错
thisdeletewith未实现
yieldvoidininstanceof未实现
ES 模块、Promise、原型链不支持

常见错误

parse error; expectedtype mismatch'xxx' not foundoomC stack — 多数带 at line N col M 位置信息。