DEV Community

Akash
Akash

Posted on

Solving Objects&Array Scenario Question

1.USER PROFILE UPDATE

  • By Using create update email and adding new property .  OUTPUT:

2.SHOPPING CART TOTAL
*By using map() separating price values in another array and using reduce() to find total value


OUTPUT:

3.FIND SPECIFIC OBJECT

  • By Using filter() finding user whose name is Arun


OUTPUT:

4.ADD ITEMS TO ARRAY

  • by using push() adding another product dynamically and using filter() removing shoe and returning only items with price>1000.


OUTPUT:

Top comments (0)