useNavigate and useLocation hooks in ReactJSAs the name suggests these are the 2 hooks mainly used for navigation functionality in reactjs, as these are router related functionalities these are bundled inside react-router-dom library. useLocation() hook: How to use useLocation hook? Inorder to...Feb 11, 2024·3 min read
map() method of javascriptNormally to perform any operation on array elements we use for loop and store the element in another array, but now we can do any operation on array elements just by using map() method provided by javascript. General syntax of map() method is, array....Apr 25, 2022·3 min read
Usage of filter() method in javascript.The functionality of filter() method is to filter out the elements based on the condition provided in the callback function. This method creates new array with all the elements which are satisfying given condition in the callback function. basic syn...Apr 21, 2022·3 min read
Usage of async and defer attribute in html script tagWhen we write html code and start execution, parsing of html code starts and browser starts loading but when script tag encountered browser can't continue building DOM. So script file must be executed when it is found in the code. Do you know how the...Apr 19, 2022·3 min read
Event Bubbling and Capturing in JavascriptIntroduction. We are working on lot of web applications using different kind of technologies, in those applications we use numerous types of nested elements also. So when we are using these nested elements it is necessary to know how the operation ha...Apr 17, 2022·4 min read
var, let and const in javascriptvar, let and const are the 3 ways to declare variables in javascript based on the requirement of the variable. There are many differences between these types, let us discuss characteristics of each of these types. var This was the only one type of de...Apr 13, 2022·3 min read
Nullish Coalescing Operator in JavascriptIntroduction Default value plays very important role when we are implementing some functionality in javascript, When function called with some missing values then if function definition is not provided with any default value then we will not get the ...Jan 13, 2022·3 min read