1mbcode is a backend language written for 1mb.site. It gives basic backend functionality to developers in a sandboxed environment.
1mbcode supports array|string|integer|float|boolean
data types, below are examples for creating variables and assigning their value.
var myArray = {"name": "jake"};
var myString = "Hey! I'm Jake!";
var myInteger = 100;
var myFloat = 100.99;
var myBool = true;
You can reference a variable as the value of another variable, function parameter, etc with the &
char e.g &myVar
.
1mbcode supports standard assignment pperators +
, -
, *
, /
. You can use any of these operators on integer
, float
, or variable references. note: assignment operators have not yet been implemented on variable references
var myFuncResult = get_url("https://google.com");