Skip to content

Commit

Permalink
Update expenditure-analysis.js
Browse files Browse the repository at this point in the history
lokesh3097 authored Dec 7, 2023
1 parent 07beef6 commit be3675f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions 01-js/easy/expenditure-analysis.js
Original file line number Diff line number Diff line change
@@ -3,13 +3,13 @@
and return a list of objects where each object is unique category-wise and has total price spent as its value.
transactions is an array where each
Transaction - an object like
{
id: 1,
timestamp: 1656076800000,
price: 10,
category: 'Food',
itemName: 'Pizza',
}
{
id: 1,
timestamp: 1656076800000,
price: 10,
category: 'Food',
itemName: 'Pizza',
}
Output - [{ category: 'Food', totalSpent: 10 }] // Can have multiple categories, only one example is mentioned here
*/

0 comments on commit be3675f

Please sign in to comment.