Skip to content

Instantly share code, notes, and snippets.

@hustKiwi
Created September 21, 2019 07:39
Show Gist options
  • Save hustKiwi/32fd420aded2dc8dce72c79df08a6270 to your computer and use it in GitHub Desktop.
Save hustKiwi/32fd420aded2dc8dce72c79df08a6270 to your computer and use it in GitHub Desktop.
'' + 32
'3.14' + 0.0015
false.toString()
[1, 2, 3].toString()
JSON.stringify({
key: 123
})
parseInt('3', 10)
parseInt('3.14', 10)
Number('3.14') + 0.0015
Boolean('true')
Boolean('false')
Boolean(1)
Boolean(0)
const objString = JSON.stringify({
key: 123
});
JSON.parse(objString)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment