Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var myphone = {
- make : "Apple" ,
- model : "Iphone 4" ,
- warrenty : 12 ,
- color : "white" ,
- };
- window.console.log(myphone);
- delete myphone.warrenty;
- window.console.log(myphone);
- window.console.log(myphone.model);
- var myotherphone = myphone;
- window.console.log(myotherphone);
- myotherphone.model = "Iphone 5";
- window.console.log(myotherphone);
- window.console.log(myphone);
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement