SHARE
TWEET

Untitled

a guest Mar 19th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function processArray (array) {
  2.   for(var i = 0; i < array.length; i++) {
  3.     console.log('Element ', array[i]);
  4.   }
  5.  
  6.   console.log('I can use variable i outside the loop ', i);
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top