(BasicBrackets)
js is off?
Code
() ("" making sure the root function doesn't exist) (var array (list (10 20 5))) ("" for loop) (def loop (() ("" creating a function because i want to refer to it later) (var i 0) (var length (len (array))) ("" get length) (while (< (i) (length)) (() (log (index (array) (i)) ) (var i (+ 1 (i))) )) )) (loop) (var array "(list (10 20 5))") (loop) ("" it can itterate over strings!!!!!) (var x 500) (if (> (x) 20) (var x 20)) (log (x)) ("" fizzbuzz) (def fizzbuzz (result (delete result) (def add (var result (join (result) (what) " ")) what) (var result "") (var i 1) (while (<= (i) (limit)) (() (if (and (= (% (i) 5) 0) (= (% (i) 3) 0)) (add fizzbuzz) (if (= (% (i) 3) 0) (add fizz) (if (= (% (i) 5) 0) (add buzz) (add (i)) ) ) ) (var i (+ (i) 1)) )) ) limit) (log (fizzbuzz 100))
Run
Clear output
Custom
Fizzbuzz
This is valid code
Variable as root
Returning a value
Array
New arrays
Macrons
"Local variables"
Output