Methods 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...3 min read·vasudhawankhade.hashnode.devNov 10, 2022
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...1 min read·vasudhawankhade.hashnode.dev1Apr 9, 2022
Datatype -Array in JavaScript (Methods)Data Types in Javascript Array Methods6 min read·vasudhawankhade.hashnode.devApr 7, 2022
Data 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 ...2 min read·vasudhawankhade.hashnode.devMar 25, 2022
Function 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...3 min read·vasudhawankhade.hashnode.devFeb 10, 2022