<p></p>
<html></html>
<head></head>
<!DOCTYPE>
<body></body>
<h1></h1>
<ul></ul>
<ol></ol>
<li></li>
<img />
<!-- -->
<a></a>
text-decoration: value
text-align: value
font-size: value
font-family: value
color: value
width: value
margin: value
height: value
border-width: value
border-style: value
border-color: value
background-color: value
float: value
rgb(red, green, blue)
fill(color)
ellipse(x, y, w, h)
rect(x, y, w, h)
background(color)
randomNumber()
Declare and assign a value to a variable
Declare a variable
drawSprites(group)
var sprite = createSprite(x, y, width, height)
sprite.scale
function draw() { }
World.frameRate
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)
sprite.visible
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);