InterviewSolution
Saved Bookmarks
| 1. |
What Will Be The Output Of The Following Code? var Output = (function(x) { Delete X; return X; } )(0); console.log(output); |
|
Answer» The OUTPUT would be 0. The delete operator is used to delete properties from an object. Here x is not an object but a local variable. delete OPERATORS don't AFFECT local variables. The output would be 0. The delete operator is used to delete properties from an object. Here x is not an object but a local variable. delete operators don't affect local variables. |
|