Tag: Class

How to use Class in JS (2)

Refence to this page. Credits go to Isaaks, the writer of that article. This is for my personal study. Boxing with Prototype & static methodsBoxing: wrapping primitive non-object with a correspond

How to use Class in JS (1)

(This is my personal practice on this page. May use some similar codes.) Declare a class123456class Page { constructor(words, lines){ this.words = words; this.lines = lines; }&#