Guess output of following code.
const name ="India"
capital = "New Delhi"
console.log(delete name);
console.log(delete capital);
Explanation:
delete operator delete property from global object,it will not delete variable
declaared by var ,let,const.so output will be
false
true
No comments:
Post a Comment