Skip to Content
Learn
Code Challenges
Code Challenge 5

Code Challenge 5

Instructions

1.

Use db.each() to find the totalPrice if you bought every shirt from the Clothing database. Select the price from each row where item is 'shirt' and add the prices to totalPrice. Log totalPrice after they have all been added. Each row’s price property is already a number, so you do not need to use Number() to convert it.

Folder Icon

Sign up to start coding

Already have an account?