Supported JavaScript Syntax
Literals:
42 // Number
3.14 // Float
'hello' // String (single quotes)
"hello" // String (double quotes)
`hello ${name}` // Template literals
true / false // Boolean
null // Null
[1, 2, 3] // Array literal
{ name: 'John', age: 30 } // Object literal Operators:
// Arithmetic
a + b a - b a * b a / b a % b a ** b
// Comparison
a === b a !== b a == b a != b
a > b a >= b a < b a <= b
// Logical
a && b a || b !a a ?? b
// Ternary
condition ? valueIfTrue : valueIfFalse
// Member access
obj.property obj['property'] arr[0] arr[arr.length - 1]
// Safe navigation (built-in — no ?. syntax needed)
// Accessing a property on null/undefined returns undefined instead of throwing
obj.property obj.nested.deep arr[0]
// Spread
[...arr1, ...arr2] { ...obj1, ...obj2 }
// typeof
typeof value === 'string' Arrow Functions (Concise Only)
Not Supported
Last updated
Was this helpful?