Advertisement
AHMED1970

JavaScript Common Mistakes

Feb 20th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Confusing Addition & Concatenation
  2. Addition is about adding numbers.
  3.  
  4. Concatenation is about adding strings.
  5.  
  6. In JavaScript both operations use the same + operator.
  7.  
  8. Because of this, adding a number as a number will produce a different result from adding a number as a string:
  9. download file on mediafire  http://ow.ly/LwE7309c0i4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement