Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ANSWERS.md #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simonsayscode
Copy link

From the MDN article on delete (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete):

delete is only effective on an object's properties. It has no effect on variable or function names.

While sometimes mis-characterized as global variables, assignments that don't specify an object (e.g. x = 5) are actually property assignments on the global object.

Updating the answers to properly reflect this.

From the MDN article on delete (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete):
------------
delete is only effective on an object's properties. It has no effect on variable or function names.
While sometimes mis-characterized as global variables, assignments that don't specify an object (e.g. x = 5) are actually property assignments on the global object.
------------

Updating the answers to properly reflect this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant