Learn

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.

Take this course for free

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Already have an account?