DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript es6 class
class MyClass { constructor() { this.answer = 42; } } const obj = new MyClass(); obj.answer; // 42
Source by thecodebarbarian.com #
PREVIOUS
NEXT
Tagged:
#javascript
#class
ADD COMMENT
Topic
COMMENT
Name
1+3 =
Submit