Import Modules Dynamically(import())During web development bootcamp after Completion of useContext hook , students were asked to implement different languages in the web app so that is were we got to know that dev's will maintian different languge script files in accordance to Englis...Jun 3, 2022·2 min read
Being a single threaded synchronous language how javascipt handles the async codeMay 25, 2022·2 min read
Debouncing and Throttling(part 1)Why we want to use Debounce or Throttling Techniques: 1.To improve performance of a website 2.The way this is done by reducing number of times a particular action is taken Without Debounce or Throttling: lets take an example, we have to auto c...May 11, 2022·2 min read
Event Bubbling and Event CapturingDuring an interview interviewer asked me one question, that question is what is the third argument of addEventListener at that time i dont know about third argument then i came to know that third argument handles with event bubbling and capturing s...May 10, 2022·2 min read
Borrow a Method Using Bindlet's consider, we have two calculate the age of two different people const obj1={ firstName:"john" lastName:"Doe" yearOfBirth:1999 calcAge=function(){ console.log(`${this.firstName}${this.lastName} age is `${2022-this.yearOfBirth}`) } } in the obo...May 10, 2022·2 min read
Controlled and Uncontrolled ComponentsBefore going into the controlled or uncontrolled components,let's go one step back and understand the Components in react What is Component In React A Component is one of the core building blocks of React. In other words, we can say that every applic...May 9, 2022·3 min read
short circuiting in JS with (||,&&,??)short circuiting: JS stops the evaluating expressions || operator in statements: - let fruit1="" ||"apple"; - console.log(fruit1); o/p==>apple; let fruit2="banana"||"apple" console.log(fruit2) o/p==>banana So in above example while execut...Jan 11, 2022·2 min read