Remainder Operator
Remainder Operator
The remainder operator, %, gives back what is left after division. A number divided by 2 with no remainder is even.
Your task: Use the provided queue position to create isEvenPosition. It should be true when the position has no remainder after division by 2. Log the boolean.
Free with a JS Exercises account
Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.
By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.
Remainder Operator
The remainder operator, %, gives back what is left after division. A number divided by 2 with no remainder is even.
Your task: Use the provided queue position to create isEvenPosition. It should be true when the position has no remainder after division by 2. Log the boolean.