Generation

generate functionTue, 17 Jan 2023

write nameof function that does this: var abc = 1; console.log(nameof(abc)) // prints "abc"

function nameof(x) { return console.log(x) }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant