function myFunction() {
return "You rock!";
}
let varOne = myFunction; // set to equal a function
let varTwo = myFunction(); // set to equal the string "You rock!"
result
is set to the value returned from calling the function getNine
.
result
so it is set to the number that the function getNine
returns.
testString: 'assert(result == 9, ''Your code should fix the variable result
so it is set to the number that the function getNine
returns.'');'
- text: Your code should call the getNine
function.
testString: 'assert(code.match(/getNine\(\)/g).length == 2, ''Your code should call the getNine
function.'');'
```