1/10
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Math.random()
generate a random number between 0 and 1
Math.round(Math.random())
generate either 0 or 1
>=
logical operator for greater than
<=
logical operator for less than
!=
logical operator for not equal
==
logical operator for comparison
&&
logical operator that all given conditions need to be satisfied
||
logical operator that any given condition needs to be satisfied
%
modulus operator
if(x>=40)
{
document.getElementById(‘letter’).value=”A”
}
if var x is larger than or equal to 40 make id=”letter” value A
document.getElementById(‘result’).value=Math.round(x)
round the answer of var x for the value of id=”result”