new to learning js, i’m able to call the first two functions correctly, when i try to log the third function to the console i get “nan”, when logging ‘total score’ to the console im trying to get the ‘touchDown’ + ‘extraPoint’
please help.
thanks
Your function totalScore expects one argument, but you pass two.
The one argument the function expects is used nowhere, though. totalScore and extraPoint expect one argument each. But you do not pass any.
Your function totalScore needs two parameters. One of them must be used as an argument for the touchDown function, the other for the extraPoint function.