DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
use obj property inside itself
const obj = { key1: "it ", key2: () => this.key1 + " works!"; } alert(obj.key2())
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#obj
#property
ADD COMMENT
Topic
COMMENT
Name
3+5 =
Submit