Variables in JavaScript are used for storing data values in code. In order to declare a variable we must put “let” prior to our variable and in order to initialize our variable we must give it a value in relation to something. To name a variable you can use anything other than a number to start you variable and you must not use spaces . Arithmetic operators in java are essentially mathematic symbols that are used in code to complete a specific task. For example, the + sign adds two operands. Concatenation is a way to put two strings of code together. For example, if you concatenate 1 with 2 you would get 12. The concatenation operators are + and +=. + concatenates two values and += adds the result of the expression to the end of the variable.
Leave a Reply
You must be logged in to post a comment.