Tell us what’s happening:
Describe your issue in detail here.
Hey can someone help me, I am not sure why the console is telling me why my code solution is incorrect and why the console is telling me that my function is undefined. I watched the Get Help video and the correct code is similar to what I had?
Your code so far
function functionWithArgs(num1, num2){
console.log (num1+num2);
}
functionWithArgs(1,2);
functionwithArgs(7,9);
// running tests
functionWithArgs
should be a function.
functionWithArgs(1,2)
should output
3
.
functionWithArgs(7,9)
should output
16
. // tests completed // console output 3 ReferenceError: functionwithArgs is not defined 3 ReferenceError: functionwithArgs is not defined
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Challenge: Passing Values to Functions with Arguments
Link to the challenge: