<script> let demo={ ... READ MORE >>
Object is the most important data-type for modern JavaScript that contain any combination of data-types in the form of “key: value” pairs. These keys can be variables or functions in the term of an object that can be created with curly brackets... READ MORE >>
Create an Animal class with by default 0 speed and use two methods for run and stop then create another class Rabbit that inherit the animal with function name hide. class Animal { constructor(name) { this.speed = 0; this.name =... READ MORE >>
Interfaces allow us to specify what methods/functions of a class should implement. It’s quite easy to use a variety of different classes in the same way. When one or more classes use the same interface, it is referred to as... READ MORE >>
Recent Comments