Last active
March 28, 2019 02:18
-
-
Save deleteman/39bd808cd2481121975e05e0088bc29a to your computer and use it in GitHub Desktop.
stringify-serializer
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
let testObj = { | |
name: "Fernando", | |
age: 35, | |
speak: function() { | |
console.log("Hello world!") | |
}, | |
address: undefined | |
} | |
let serializedObj = JSON.stringify(testObj) | |
testObj.speak() | |
console.log(serializedObj) | |
console.log(typeof serializedObj) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment