Advertisement
bolo17

Untitled

Apr 5th, 2022
1,001
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. JavaScript Algorithms and Data Structures
  2. Basic JavaScript
  3. Add Two Numbers with JavaScript
  4. Number is a data type in JavaScript which represents numeric data.
  5.  
  6. Now let's try to add two numbers using JavaScript.
  7.  
  8. JavaScript uses the + symbol as an addition operator when placed between two numbers.
  9.  
  10. Example:
  11.  
  12. const myVar = 5 + 10;
  13. myVar now has the value 15.
  14.  
  15. Change the 0 so that sum will equal 20.
  16. const sum = 10 + 0;
  17. for more:https://gurl.pw/lJy7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement