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.

Related questions

0 votes
asked Mar 24, 2021 in JavaScript by sharadyadav1986
0 votes
asked Mar 23, 2021 in JavaScript by sharadyadav1986
...