Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var a = [1,2,3,4]
- for (var i = 0; i < a.length; i++){
- a[i] = a[i] + 1
- }
- console.log(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement