1. Var Declarations and HoistingWhen we declare variables by using var are treated as global variables. And we can access the variables outside the block also. Hoisting…May 15, 2021May 15, 2021
A few java script method1. String.prototype.indexOf() This method is used to find out the index of an element in a string. It gives you the position of the search…May 10, 2021May 10, 2021