function functionWithArgs(a , b) {
console.log(a + b);
}
functionWithArgs: functionWithArgs(3,16);
functionWithArgs();
// Not sure what I’m doing wrong (question is in the topic)
function functionWithArgs(a , b) {
console.log(a + b);
}
functionWithArgs: functionWithArgs(3,16);
functionWithArgs();
// Not sure what I’m doing wrong (question is in the topic)
Two things:
This definitely doesn’t look like the example:
functionWithArgs: functionWithArgs(3,16)
And
You should call functionWithArgs with two numbers
This, on the last line, would seem to be being called with no arguments: functionWithArgs()