Discussion: Negative Gravity

Execute the code to understand the output and gain insights into how JavaScript handles double negative signs, arithmetic operations, and the decrement operator.

Verifying the output

Now, it’s time to execute the code and observe the output.

Get hands-on with 1200+ tech skills courses.