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)
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")