Declaring and accessing variables in Javascript classes

后端 未结 0 1696
清歌不尽
清歌不尽 2020-11-27 03:08

I\'m learning JavaScript and I ran into an issue concerning class instance attributes. Consider the following code:

class MyClass {
    constructor(a, b) {
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题