Created
July 20, 2012 00:43
-
-
Save ralphcrisostomo/3147950 to your computer and use it in GitHub Desktop.
Print Objects in Javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Print Objects in Javascript | |
*/ | |
var output = ''; | |
for (property in object) { | |
output += property + ': ' + object[property]+'; '; | |
} | |
console.log(output); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment