declare class class: in es6
class Template{
constructor(){
/**/
}
method(){
/**/
}
}
or
class Template{
method(){
/**/
}
}
question: under what circumstances can class in
1.ES6 not declare constructor?
2. What"s the difference between the above code?