Advertisement
Guest User

Untitled

a guest
May 26th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. JS Part 1
  2.  
  3. 1. Integer, float, string, boolean
  4. 2. `Math.pow(2,2)` `Math.sqrt(4);`
  5. 3. `Math.floor` and `Math.ceil`
  6. 4. `.search()` and `.indexOf()`
  7. 5. `.push()` and `.pop()`
  8. 6. Null means there is the value of nothing whereas undefined means that there isn't any current value assigned
  9.  
  10. JS Part 2
  11.  
  12. 1. `x[0];`
  13. 2.
  14. 3.
  15. 4.
  16. 5.
  17.  
  18. ```js
  19. var array = "h,e,l,l,o, ,w,o,r,l,d".split(',');
  20. var i = 1;
  21.  
  22. while (i < array.length) {
  23. var t = array[i-1];
  24. array[i-1] = array[i];
  25. array[i] = t;
  26. i+=3;
  27. }
  28. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement