SuperSimpleDev / javascript-course

708 stars 568 forks source link

Not mentioning "product3" but the code still works correctly. #17

Open EmaWS opened 1 year ago

EmaWS commented 1 year ago

<!DOCTYPE html>

Objects exercise
prabasri commented 1 year ago

This is because you are passing the argument product3 to the parameter product2. So, it will consider product3 as product2 and run the function for product1 and product3.

unevtable commented 2 months ago

parameters are not variables, the parameter product1 is different from variable product1