1
2
3
4
5
6
7
8
9
10
To practice on your own, or to check code you believe shouldn't have been scored as incorrect, go to CodePen.
0,1,2,3,4,5,6,7,8,9
0
0
0
0
Enter the operators, in this order—for addition, subtraction, multiplication, and division. Don't type spaces between them. | +-*/ | \+-\*\/ | |
What is the name of the arithmetic operator that gives you the remainder when one number is divided by another? (one word) | modulus | modulus | |
Type the modulus operator. | %% | % | |
What is the value of num? | let num = 20 % 6; | 2 | 2 |
Fill in the blank with the expression 100 multiplied by 200. | let alrgeNum = ____________; | 100 * 200 | 100\*200 |
Fill in the blank. The expression is 9 divided by the variable qty. | let num = ___________; | 9 / qty | 9\/qty |
Assign to the variable total the result of subtracting one variable from another variable. total has been declared beforehand. Make up the two variable names in the expression. | total = num1 – num2; | total=[a-z_$][a-zA-Z0-9_$]*-[a-z_$][a-zA-Z0-9_$]*; | |
Assign to a variable the remainder when one integer is divided by another. The variable hasn't been declared beforehand. Make up the variable name and the numbers. | let leftOver = 10 % 3; | let[a-z_$][a-zA-Z0-9_$]*=[-]?(?:[.]\d+|\d+(?:[.]\d*)?)%[-]?(?:[.]\d+|\d+(?:[.]\d*)?); | |
|
|||
|