Flash Cards

Touch the Questions to Reveal the Answers

What are the four arguments of a rect?

ctx.strokeRect(?, ?, ?, ?);

ctx.strokeRect(x, y, width, height);

What are the first 3 arguments of a circle?

ctx.arc(?, ?, ?,0,Math.PI*2);

ctx.arc(x, y, radius, 0,Math.PI*2);

What are the 3 ways to create a variable?

__ = "hello";

let, var, and const

Math.random() picks a number from 0 to?

1
But it does not include 1. The biggest number will be 2.999

Math.floor() will round 2.9 to ?

2
Floor means round down.

This loop will run __ times?
for(let i = 0; i < 5; i++){}

5

When creating a function what are these called?
function example(?, ?){}

paramaters

When calling a function what are these called?
example(?, ?);

arguments

What position is green at?
let colors = ["green", "red", "yellow"];

0

What position is yellow at?
let colors = ["green", "red", "yellow"];

2