Let's test your knowledge. Click the correct answer from the options.
What would be the output of the following program?
JAVASCRIPT
1let a = 2;
2const sum = () => {
3 let a = 5;
4 return a + 20;
5}
6console.log(a + sum());
Click the option that best answers the question.
- 27
- 25
- undefined
- NullPointerException