Category: JavaScript/Jquery

Object in JS

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   >>

Use of Let, Var and Const on JS

We use Var keyword in declaring the variable and the scope of the variable is either global or local. The scope of the variable is global if we declare the variable outside of a function otherwise local if declare the variable inside a function....
READ MORE   >>

Inheritance Task in JS

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   >>

Task using OOPS & DOM in JS

Task for HTML Create a empty div with class name resultCreate a button with class name btn and apply onclick event here with output function Task for DOM Find the above result and btn class using query selector method Task for...
READ MORE   >>

Recent Comments

    • Copyright © 2020 (Er. Shairy Kalra). All Rights Reserved