Recent Blogs

Peter Parker 22-08-24
What is the difference between var, let, and const?

The scope of a var variable is functional scope. The scope of a let variable is block scope.It can be updated but cannot be re-declared into the scope.The scope of a const variable is block scope.It cannot be updated or re-declared into the scope.

Peter Parker 22-08-24
What is the difference between arrow function and regular function?

Regular functions created using function declarations or expressions are constructible and callable. However, the arrow functions are only callable and not constructible.

Peter Parker 22-08-24
What is difference between foreach, map, filter, and find?

The forEach() method does not create a new array based on the given array. The map() method creates an entirely new array.Filter creates a new array by removing elements that don't belong.Find returns the first condition matched.

Peter Parker 22-08-24
Why do we use template string?

Template strings are a powerful feature of modern JavaScript released in ES6. It lets us insert/interpolate variables and expressions into strings without needing to concatenate like in older versions of JavaScript.