Expressions Overview
Math (Full Object)
Math.abs(-5); // 5
Math.ceil(4.2); // 5
Math.floor(4.8); // 4
Math.round(4.5); // 5 (or use Math.round(x * 100) / 100 for decimals)
Math.min(1, 2, 3); // 1
Math.max(1, 2, 3); // 3
Math.pow(2, 8); // 256 (or use 2 ** 8)
Math.sqrt(16); // 4
Math.random(); // 0.0 to 1.0
Math.PI; // 3.14159...
Object (Read-Only)
Object.keys(user); // ['name', 'email', 'age']
Object.values(user); // ['John', '[email protected]', 30]
Object.entries(user); // [['name', 'John'], ['email', '...'], ...]
Object.fromEntries(entries); // { name: 'John', ... }
Object.hasOwn(user, 'email'); // true
Object.assign({}, a, b); // Merge objects (creates new object)
Array (Static)
JSON
Type Constructors
Date (Static Methods)
Encoding & Security helpers
Type Checking & Type Checking helpers
BigInt & BigInt Helpers
Regular Expressions
Sample Example: We are using regular expression to format a phone number

Result:

Native Methods (Always Available)
String Methods
Array Methods
Number Methods
Standard Library Functions ($ Helpers)
Date & Time
Current Date/Time
Date Arithmetic
Date Parts
Date Comparison
Date Validation
Relative Time
Formatting
Data Access & Transformation
LLM Optimization
Identity
Last updated
Was this helpful?