how to turn the name of a variable into a string javascript 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"