javascript map, filter, find, reduce mehtod

Muhammad Ahasanur Rahman
2 min readApr 12, 2021

--

There was a boy name J script. He was very much fond of eating various foods. So when ever he gets some food he eats them all. He doesn’t like to wait too much time when he sees foods before him. He eats them serially .yummy!!!

cute baby eating

Little J script likes to eat chocolates than all other items. He always tries to find chocolate from foods. He usually likes to taste snickers, dairy milk chocolates. But his father Mr. Javascript gives him many items including chocolates. Let’s see how little script can find his very first chocolate from many food items in plates.

After few days little script feels illness. Mr javascript now decides to give liitle script such foods which are very healthy and won’t be harmful at all for health. Let’s see how he chooses items from many food items

As u know little script likes to eat he also likes to play with math. His father Mr Javascript wrote some numbers in a paper which are prices of food items and told to little script to calculate total cost to buy these food items. Let’s see how little script counts total cost .

If you have any suggestion about this article can comment about this. You can also search google where you will find many more good resources about this topics. Happy Coding..

--

--

Muhammad Ahasanur Rahman
Muhammad Ahasanur Rahman

No responses yet