0 votes
in JavaScript by
What output will this code present:

var Output = (function(x)

{

Delete X;

return X;

}

)(0);

console.log(output);

1 Answer

0 votes
by

Delete operator helps to delete the properties from an object. In this code, x is not used as an object but a local variable. Delete operators do not have any effect on local variables.

...