Catch Missing Open and Closing Parenthesis After a Function Call

Catch Missing Open and Closing Parenthesis After a Function Call
0

#1

Tell us what’s happening:

I just don’t really understand the task, I got confused, with how to move on.
TASK:
Fix the code so the variable result is set to the value returned from calling the function getNine

Your code so far


function getNine() {
  let x = 6;
  let y = 3;
  return x + y;
}

let result = getNine;
console.log(result);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/debugging/catch-missing-open-and-closing-parenthesis-after-a-function-call


#2

Found it:

function getNine() {
let x = 6;
let y = 3;
return x + y;
}

let result = getNine();
console.log(result);