Syntax
How it works.
Variables

Declare variables with the let keyword.

let x = 10;
let y = "hello";
let isTrue = true;
Data Types
  • Integers: 5, 10, -20
  • Strings: "hello", "world"
  • Booleans: true, false
  • Arrays: [1, 2, 3]
  • Hashes: {"key": "value"}
  • Functions:
  • First-class functions

  • Null: null
If Statements
if (x > 5) {
  return "greater";
} else {
  return "less or equal";
}
Functions
let add = fn(a, b) {
  return a + b;
};

add(5, 10); // Returns 15