Flash Cards

Touch the Questions to Reveal the Answers

document.onmousemove = (e)=>{}
"e" is the name we are giving ___.

the data coming from the mouse whenever it is moved

document.onmousemove = (e) =>{ console.log(e.clientX) }; will print ___ to the console.

the x position of the mouse cursor

document.onkeydown = (e) =>{ console.log(e.key) } will print ___ to the console.

the name of a key being pressed on the keyboard

What theorem can be used to detect if 2 circles are touching

Pythagorean theorem

Math.sqrt(); is Javascript for ___

square root

Math.pow(); is Javascript for ___

power of

To create many instances of a class

use an array and a for-loop

Can canvases be stacked on top of each other

yes

Is it possible to compare all the elements of an array to each other.

yes

How many canvas elements can be on a webpage

as many as you want