JavaScript Function string
JavaScript functions have a toString()
function which gives the source code a string.
let f = () => {
alert("kiru.io")
}
f.toString()
Will emit
"() => {
alert(\"kiru.io\")
}"
Learned from this resource.
JavaScript functions have a toString()
function which gives the source code a string.
let f = () => {
alert("kiru.io")
}
f.toString()
Will emit
"() => {
alert(\"kiru.io\")
}"
Learned from this resource.