Nah thats not it .
// Example
function ourFunctionWithArgs(a, b) {
console.log(a - b);
}
ourFunctionWithArgs(10, 5); // Outputs 5
// Only change code below this line.
function functionWithArgs(1, 2){
console.log(1 + 2);
console.log(7, 9);
}
functionWithArgs(3, 16); //Output 3[quote=“MTHO2110, post:1, topic:243958, full:true”]
Tell us what’s happening:
Your code so far
// Example
function ourFunctionWithArgs(a, b) {
console.log(a - b);
}
ourFunctionWithArgs(10, 5); // Outputs 5
// Only change code below this line.
function functionWithArgs(){
console.log(1 + 2);
console.log(7 + 9);
}
functionWithArgs(3, 16); // Outputs 3
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36
.
Link to the challenge:
[quote=“MTHO2110, post:1, topic:243958, full:true”]
Tell us what’s happening:
Your code so far
// Example
function ourFunctionWithArgs(a, b) {
console.log(a - b);
}
ourFunctionWithArgs(10, 5); // Outputs 5
// Only change code below this line.
function functionWithArgs(){
console.log(1 + 2);
console.log(7 + 9);
}
functionWithArgs(3, 16); // Outputs 3
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36
.