Tell us what’s happening:
I feel like I’ve made sure that the syntax I’m using matches that of the example but it doesn’t seem to be working. I could just be tired I guess, I feel like I’m missing something…and I know I’ll kick myself when I see it!
- ‘it’s not a function’
- the 1st of the two ‘tests’ add up to 3, but it says it doesn’t
- I thought in passing it arguments was what you did to call it? Have I got this wrong?
TIA! x
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 functionsWithArgs(one,two) {
console.log(one + two);
}
functionsWithArgs(1, 2);
functionsWithArgs(7, 9);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/passing-values-to-functions-with-arguments