Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function displayObj() {
- //Declare and define our object
- var cit_class = {name:"Mobile Application Dev", code:"cit261", instructor:"Baer"};
- //Turn the object into a string of JSON
- var myJSON = JSON.stringify(cit_class);
- //Display the string
- alert(myJSON);
- }
Add Comment
Please, Sign In to add comment