how to learn javascript quickly and python laguage [closed]

You are building an e-commerce website and want to implement a shopping cart functionality. Write a JavaScript function called addToCart that allows users to add items to their cart. The function should take in two parameters: itemName (a string) and itemPrice (a number).