Posts

What is the map method in javascript ?

It is use for the iterate the array element basically it crate new array with result of calling function. EX: var numbers = [25, 36, 49, 64]; var sqrtNumbers = numbers.map(Math.sqrt)

We have two server call and we are calling using the ajax and one call are depended on another then how can we achieve it.

There are two option : 1. Do the sync ajax call means set async to false 2. write the other call in success of first call

what is the selector in jquey?

Selector is use for the get the element from the DOM. There are different type of selector like 1) Id => $("#id") 2) class => $(".class") 3) element => $("element")

What is different between == and === in javascript ?

== operator don't check the type where as === is also check the type of variable while compare. ex : 5=="5" => true 5==="5" => false