console

            

Other

Sloth is a simple interpeter written in Golang and compiled to WASM for the browser.

var is used to declare variables.

fun is used to declare functions.

return is used to return a value from a function.

if / else is used to check if a condition is true or false.

concat is used to concatenate strings.

len is used to get the length of a string.

print is used to print a string to the console.

supported operators: +, -, *, /