The video for this lesson is currently being updated, please read the transcript instead.

Adding products to the cart

Previously, we created this addToCart method. Currently it just console logs a message, so in this video, we'll give it some proper functionality.

Updating total

The addToCart method will need to do two things: firstly, it'll need to update the total value, and secondly, it'll need to push products to the cart array so they're ready to be displayed.

To view the complete lesson you'll need to login or join this course.


Click to load comments...