Discussion on map, filter and reduce methods in Javascript.
Interview Question: If you can guess the output of the below code successfully then you can skip this blog :)
Code:
let input_array=[1,6,3,7,9,2];
let updated_array=input_array.map((element)=>{
return element<4;
})
console.log(updated_array);
If...
pulkitgovrani.hashnode.dev3 min read