Java script is a coding language that is made for users to interact with websites or games. When you are working with functions, they have a chance of containing arithmetic operators. Arithmetic operators are mathematical operations that are applied to functions, loops or anything else that has to do with Java script. These operators used in PEMDAS are +, -, * or multiplication and / or division. There are other operators that can be used, such as the modulus operator(%). This is used for returning the remainder after the division. Another one is the increment operator or ++. This is used to increase the value of any variable by 1. Lastly, you have the decrement or – -.This is the opposite of the increment operator, as this one is used to decrease the value of any variable by 1. Arithmetic operators could also be used to be placed together in order to change the output of a variable.
Reader Interactions
Comments
Leave a Reply
You must be logged in to post a comment.
Hey Lamine! I appreciate you writing about Arithmetic operators with JavaScript. When reading the book, I was able to understand the concept, but this was definitely a topic I struggled with. Your post presented the information clearly and definitely shed a lot more light onto decrement and increment operators for me!