moveForward
turnLeft
penUp
penDown
function myFunction() { // function body, including optional "return" command. }
Call a function
moveTo
turnTo
arcRight
arcLeft
penWidth
penColor
penRGB
Call a function with parameters
randomNumber min/max
function myFunction(n){ //code }
onEvent(id, type, function(event)){ ... }
setPosition(id, x, y, width, height)
setSize(id, width, height)
setScreen(screenId)
console.log
write(text)
value1 + value2;
num1 - num2;
num1 * num2;
num1 / num2;
randomNumber
var x = __;
x = __;
var x = promptNum("Enter a value");
var x = "__";
setText(id, text)
if( ){ //code }
__ == __
getText(id)
var x = prompt("Enter a value");
str.toUpperCase
str.toLowerCase
if ( ){ // if code } else { // else code }
__ != __
__ > __
__ >= __
__ < __
__ <= __
__ && __
__ || __
!__
setProperty(id, property, value)
rgb(r, g, b, a)
while( ){ // code }
list.length
insertItem(list, index, item)
var list = ["a","b","d"];
var x = [1,2,3,4];
appendItem(list, item)
removeItem(list, index)
playSound(url)
setImageURL(id, url);
for(var i=0; i<4; i++){ //code }
return
setActiveCanvas
line
circle
setStrokeColor
setFillColor
clearCanvas