Google News
logo
Ember.js - Interview Questions
What is Native Classes In-Depth in Ember.js?
Native classes were first added to JavaScript in ES2015 (also known as ES6). They are defined using the class keyword, and look like this :
class Person {
  helloWorld() {
    console.log('Hello, world!');
  }
}
Advertisement