tutorial 3: numeric variables

watch it on YouTube

Resources

JavaScript Commands

Math.random()
method of the Math object in JavaScript that will return a random number between 0 and 1. Use example:
x = Math.random();
Math.round()
method of the Math object in JavaScript that requires 1 parameter, a number, and returns the value of the parameter rounded to the nearest integer. Use example:
x = Math.round(y);