Hope some one can help me for below questions


I am a begainner , i hope some one can help me for below questions :
1. As i check it say multiply them by 7 , but i couldn't find the math .
2. why the getSubTotal(itemCount) is no the same as console.log ??

Functions: Return

They are entirely two different functions. console.log() is a method of the console that we call with an argument we wish to output (log) to the display (console).

getSubTotal() does what it suggests, gets and returns a sub-total, given a quantity. The price is built in to the function. The math is multiplication, obviously, so itemCount * 7.5 is what is returned.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.