Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JS Part 1
- 1. Integer, float, string, boolean
- 2. `Math.pow(2,2)` `Math.sqrt(4);`
- 3. `Math.floor` and `Math.ceil`
- 4. `.search()` and `.indexOf()`
- 5. `.push()` and `.pop()`
- 6. Null means there is the value of nothing whereas undefined means that there isn't any current value assigned
- JS Part 2
- 1. `x[0];`
- 2.
- 3.
- 4.
- 5.
- ```js
- var array = "h,e,l,l,o, ,w,o,r,l,d".split(',');
- var i = 1;
- while (i < array.length) {
- var t = array[i-1];
- array[i-1] = array[i];
- array[i] = t;
- i+=3;
- }
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement