Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
function functionWithArgs(number1, number2, number7, number9){
console.log((1+ 2),
(7+9));
}
functionWithArgs(1, 2),(7, 9);
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36 Edg/103.0.1264.62
Challenge: Basic JavaScript - Passing Values to Functions with Arguments
Link to the challenge:
- Create a function called
functionWithArgsthat accepts two arguments and outputs their sum to the dev console. - Call the function with two numbers as arguments.
-
Passed:
functionWithArgsshould be a function. -
Passed:
functionWithArgs(1,2)should output3. -
Failed:
functionWithArgs(7,9)should output16. -
Passed:You should call
functionWithArgswith two numbers after you define it.
***Need Help Thanks A Million