Class Inheritance in JavaScript
//Inheritance from ourselves class Thinker { constructor(name, thought) { this.name = name this.thought = thought } display() { console.log(this.name) } } class Doer extends Thinker { constructor(name, tho...

Search for a command to run...
Articles tagged with #javascript
//Inheritance from ourselves class Thinker { constructor(name, thought) { this.name = name this.thought = thought } display() { console.log(this.name) } } class Doer extends Thinker { constructor(name, tho...

In previous blog we discussed what array exactly is and its four methods : 1)push( ) 2)pop( ) 3)shift( ) 4)unshift( ) In this blog we will cover another four methods of array. 5) map(function(el,index,array) ) => Action : to perform same operation w...

What is array? Array is anything which can store more than one value. Array is secondary data type. Array stores the value by index. It will be clear in below example. // 0 1 2 3 4 5 6 ...

Why we use function? The main objective of function is to avoid the repeatation of code. Example: If we have to perform different operations on two variables we write code as follows: let a=25 let b=5 console.log(a + b) console.log(a - b) console.log...

Variable What is Variable ? a]anything that can store value or some data b] as name indicates it can vary c]it is the location where data is stored example: factorial = 45,v = "ram" We can not use number as initial of variable name We can n...
