The Bubble Programming Language
let five = 5;
let ten = 10;
let add = fn(x, y) {
x + y;
};
let result = add(five, ten);
let f = false;
let t = true;
let array = [5, -1, "haha", false];
let first = array[0];
let h = {1: "hi", "hello": "world", false: true};
let second = h["hello"];
let foo = fn(x) {x * x};
let bar = fn(x, y, f) {f(x + y)};
let n = bar(1, 2, foo);
let foo = fn(x) {return x * x;};
let x = 1;
if (x == 1) { let x = 2;} else {let x = 3;};
- the first object of array
let f = first([1, 2, 3]);
- delete the first object of array
- push an object to the tail of array
let l = [1, 2, 3];
push(l , 4);
- pop the last object of array
let l = [1, 2, 3];
pop(l);