classesJavaScriptClassesMediumHow do ES2015 classes define static methods compared to ES5 constructors?1With the static keyword inside the class; ES5 adds them directly to the constructor function2They cannot have static methods3Both use the prototype4With the const keywordBack to list