Unary Operators
Unary operators are ++ and –. Each of these either increment by one or decrement by one. It is important to understand how these interact with variables because they can be placed prior to or after a variable. For example… This would log out 2021. Let’s change it a bit… The value 2020 would be […]