Try this exercise. Click the correct answer from the options.
The following code will output ___.
JAVASCRIPT
1var x = { foo : 1};
2var output = (function() {
3 delete x.foo;
4 return x.foo;
5})();
6
7console.log(output);
Click the option that best answers the question.
- true
- false
- undefined
- 5