DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
get variable name javascript
const myFirstName = 'John' Object.keys({myFirstName})[0] // returns "myFirstName"
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#variable
#javascript
ADD COMMENT
Topic
COMMENT
Name
1+7 =
Submit