2018-10-12 15:37:13 -04:00
|
|
|
---
|
|
|
|
title: Catch Missing Open and Closing Parenthesis After a Function Call
|
|
|
|
---
|
2019-07-24 00:59:27 -07:00
|
|
|
# Catch Missing Open and Closing Parenthesis After a Function Call
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
## Hints
|
|
|
|
|
|
|
|
### Hint 1
|
2018-10-12 15:37:13 -04:00
|
|
|
- Remember to add opening and closing parentheses when calling a function.
|
|
|
|
- FunctionName + ();
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
## Solutions
|
|
|
|
|
|
|
|
<details><summary>Solution 1 (Click to Show/Hide)</summary>
|
|
|
|
|
2018-10-12 15:37:13 -04:00
|
|
|
```javascript
|
2019-07-24 00:59:27 -07:00
|
|
|
function getNine() {
|
|
|
|
let x = 6;
|
|
|
|
let y = 3;
|
|
|
|
return x + y;
|
|
|
|
}
|
|
|
|
|
|
|
|
let result = getNine();
|
|
|
|
console.log(result);
|
2018-10-12 15:37:13 -04:00
|
|
|
```
|
2019-07-24 00:59:27 -07:00
|
|
|
</details>
|