Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jun 20th, 2018 49 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. var arr = [3, 5, 7];
  2. arr.foo = 'hello';
  3.  
  4. for (var i in arr) {
  5.    console.log(i); // logs "0", "1", "2", "foo"
  6. }
  7.  
  8. for (var i of arr) {
  9.    console.log(i); // logs 3, 5, 7
  10. }
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