mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 23:06:32 +00:00
29 lines
300 B
Plaintext
29 lines
300 B
Plaintext
|
|
fn sum(a, b) {
|
|
+ a b;
|
|
}
|
|
|
|
add(2,3); // -> 5
|
|
|
|
let a = "Hello";
|
|
|
|
let b = "world";
|
|
|
|
//println(+ (+ a " ") (+ b "!")); // -> "Hello world!"
|
|
|
|
if == a b {
|
|
println("whaaaat");
|
|
}
|
|
else {
|
|
println(":o");
|
|
}
|
|
|
|
loop {
|
|
// let i = 0;
|
|
//
|
|
// if >= i 10 {
|
|
// break;
|
|
// }
|
|
//
|
|
// i = i + 1;
|
|
} |