ABAbhinav Bistinspread-vs-rest-operator-in-js.hashnode.dev00Spread vs Rest OperatorsMar 28 · 2 min read · Introduction If you have worked with JS , you would have seen ... this syntax somewhere . This symbol will have completely different meaning depending on where you are using it . Spread Operator SpreaJoin discussion
ABAbhinav Bistinunderstanding-this-keyword-js.hashnode.dev00this KeywordMar 26 · 2 min read · What this represents this refers to the object that is currently executing the function . It doesn’t depend on where the function is written, but how it is called. const obj = { greet() {\ console.loJoin discussion
ABAbhinav Bistinnew-keyword-in-js.hashnode.dev00New keywordMar 26 · 2 min read · What the new keyword does The new keyword is used to create an instance of an object from a constructor function Constructor functions It is a special function which is used to create objects . By conJoin discussion
ABAbhinav Bistincallbacks-in-js-01.hashnode.dev00Callbacks in JSMar 26 · 2 min read · What a callback function is A callback function is a function that is passed as an arguments to another function and is executed later . function greet(name,callback){ console.log(`hello , ${name}`);Join discussion
ABAbhinav Bistintemplate-literals-in-js.hashnode.dev00Template LiteralsMar 23 · 2 min read · Problems with traditional string concatenation Some common used problems with traditional string concatenation : 1. Poor readability const name = 'Abhinav'; const msg = 'Hello' +name+ ', Welcome !!'; Join discussion