convert variable name to string javscript code example
Example: get variable name javascript
const myFirstName = 'John'
Object.keys({myFirstName})[0]
// returns "myFirstName"
const myFirstName = 'John'
Object.keys({myFirstName})[0]
// returns "myFirstName"