VWVasudha Wankhadeinvasudhawankhade.hashnode.dev·Nov 10, 2022 · 3 min readMethods to create Objects in JavaScriptIn JavaScript 'Object' is a data type which is used to store data in the form of key and values.So, there are four methods to create objects:1) Object literals2) Function constructor3) Using ES6 class4) By using Object.create() methodI want to tell y...00
VWVasudha Wankhadeinvasudhawankhade.hashnode.dev·Apr 9, 2022 · 1 min readClass 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...01
VWVasudha Wankhadeinvasudhawankhade.hashnode.dev·Apr 7, 2022 · 6 min readDatatype -Array in JavaScript (Methods)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...00
VWVasudha Wankhadeinvasudhawankhade.hashnode.dev·Mar 25, 2022 · 2 min readData Type In Javascript-array And Its MethodsWhat 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 ...00
VWVasudha Wankhadeinvasudhawankhade.hashnode.dev·Feb 10, 2022 · 3 min readFunction in JavaScriptWhy 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...00