I am new to javascript and can't figure out how to write a shopping
cart function - i have some basic code, but don't completely
understand how it works. i can't find anywhere online that has an
example of code written for a shopping cart of anytype for a website -
any info would be greatly appreciated!