Guest User

Untitled

a guest
Aug 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. javascript for_in_statement
  2. just copy this code from w3schools.
  3. var person={fname:"John",lname:"Doe",age:25};
  4.  
  5. for (x in person)
  6. {
  7. document.write(person[x] + " ");
  8. }
  9.  
  10. alert(person["fname"]);
Add Comment
Please, Sign In to add comment