Sketch uses 17620 bytes (57%) of program storage space. Maximum is 30720 bytes.
Global variables use 955 bytes (46%) of dynamic memory, leaving 1093 bytes for local variables. Maximum is 2048 bytes.
Supported standard operations and constructs
Name
Operation
Operations
All but !=, ==. Use !==, === instead
typeof
typeof(...)
delete
delete obj.k
while
while (...) {...}
Declarations
let a, b, c = 12.3, d = 'a';
Simple types
let a = null, b = undefined, c = false, d = true;
Functions
let f = function(x, y) { return x + y; };
Objects
let obj = {a: 1, f: function(x) { return x * 2}}; obj.f();
Unsupported standard operations and constructs
Name
Operation
Arrays
let arr = [1, 2, 'hi there']
Loops/switch
for (...) { ... },for (let k in obj) { ... }, do { ... } while (...), switch (...) {...}
Equality
==, != (note: use strict equality ===, !==)
var
var ... (note: use let ...)
Closures
let f = function() { let x = 1; return function() { return x; } };
Return byte value at offset. s is either a string, or a number. A number is interprepted as uint8_t * pointer. Example: 'abc'[0] returns 0x61. To read a byte at address 0x100, use 0x100[0];.
LICENSE
Dual license: GPLv2 or commercial. For commercial
licensing, please contact support@mongoose-os.com
About
JavaScript scripting engine in Arduino IDE for ESP8266