In this exercise, we learnt to increment or decrement by 1. Is there a way to increment or decrement by any number more than 1?
You can use the
+= for incrementing or
-= for decrementing:
let a = 7; a -= 4;//a equals 3 a += 4;//a equals 11
I hope this helps!
Very nice. A very helpful reminder, Thanks.