Skip to main content

Command Palette

Search for a command to run...

ES6 Class

Published
1 min read

Before we start learn ES6 why we need ES6 class in Javascript. So let’s find it:

Before ES6, JavaScript had no concept of classes. It’s use functions, for example:

function Person(name) {
    this.name = name;
}

Person.prototype.getName = function () {
    return this.name;
};

var john = new Person("John Doe");
console.log(john.getName()); // Output : John Doe

Let’s know how above example is work.

Odoo Owl

Part 1 of 1

In this series, I will tell you about odoo owl