Class and Object in Javascript

Class
function Cat(name, age) {
    this.name = name;
    this.age= age;
}
In above it is cat class  
Object
var cat= new cat("remi", 4);
In above it is cat object

Comments

Popular posts from this blog

পিৎজা এবং বই

How to Download Video from Youtube - The Easiest way