<p></p>
<html></html>
<head></head>
<!DOCTYPE>
<body></body>
<h1></h1> <h2></h2> <h3></h3> <h4></h4> <h5></h5> <h6></h6>
text-decoration: value;
text-align: value;
font-size: value;
font-family: value;
color: value;
<img >
width: value;
margin: value;
height: value;
border-width: value;
border-style: value;
border-color: value;
border-radius: value
background-color: value;
float: value;
<a></a>
fill(color)
ellipse(x, y, w, h)
rect(x, y, w, h)
background(color)
Declare and assign a value to a variable
Declare a variable
randomNumber()
drawSprites(group)
var sprite = createSprite(x, y, width, height)
sprite.rotation
sprite.scale
sprite.x
sprite.y
function draw() { }
World.frameRate
sprite.visible
If statement
Equality operator
Inequality operator
Greater than operator
Greater than or equal operator
Less than operator
Less than or equal operator
keyDown(code)
keyWentDown(code)
keyWentUp(code)
mouseDidMove()
mouseDown(button)
mouseWentDown(button)
mouseWentUp(button)
If/else statement
sprite.rotationSpeed
sprite.velocityX
sprite.velocityY
sprite.isTouching(target)
sprite.debug
sprite.bounce(target)
sprite.bounceOff(target)
sprite.collide(target)
sprite.displace(target)
setCollider(type, xOffset, yOffset, width/radius, height, rotationOffset)
sprite.bounciness
Define a function
Call a function
onEvent(id, type, function(event)){ ... }
setScreen(screenId)
console.log
setProperty(id, property, value)
led.on()
led.off()
led.blink(interval);
led.pulse(interval);
led.toggle()
onBoardEvent(component, event, function(event) {...});
toggleSwitch
toggleSwitch.isOpen
button(L/R)
buttonL.isPressed
getProperty(id, property)
soundSensor
soundSensor.value
soundSensor.setScale(min, max)
lightSensor
tempSensor
colorLeds
colorLeds[index].on()
colorLeds[index].blink(interval)
colorLeds[index].intensity(brightness)
colorLeds[index].color(color)
list[index];
buzzer.note(note, duration)
buzzer.playNotes(array, tempo)
list.length
var list = ["a","b","d"];
for(var i=0; i<4; i++){ //code }
function myFunction(n){ //code }
Call a function with parameters
accelerometer.getOrientation()
pinMode(pin, mode);
digitalWrite()
var myLed = createLed(pin);
var myButton = createButton(pin);