1 answer:
Answer:
Hi!
The following Javascript statement compares if num is 2 or 5 and increment num by 1 if true.
if ( num==2 || num==5)
num = num +1;
Explanation:
The operator == is used to compare if the operands are equal.
The operator || is OR.
- If at least one of the operands is true then return true.
- If all operands are false returns false.
if( num==2 || num==5)
<em> // if num is equal 2 or if num is equal 5</em>
num = num +1; <em>// adds 1 to num.</em>
You might be interested in
Btw..which dtadium do u want cricket or football!?
Explanation:
how much the project will cost
B) a desktop is less likely to be stolen or damaged
Answer:
1.) There are 12 function keys 2.) The return Key
Explanation: