Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function processArray (array) {
- for(var i = 0; i < array.length; i++) {
- console.log('Element ', array[i]);
- }
- console.log('I can use variable i outside the loop ', i);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement