Guest User

Untitled

a guest
Feb 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. function displayObj() {
  2. //Declare and define our object
  3. var cit_class = {name:"Mobile Application Dev", code:"cit261", instructor:"Baer"};
  4.  
  5. //Turn the object into a string of JSON
  6. var myJSON = JSON.stringify(cit_class);
  7.  
  8. //Display the string
  9. alert(myJSON);
  10. }
Add Comment
Please, Sign In to add comment