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

Issue with Type Utilities II #135

Open
2 of 8 tasks
PotatoEater0127 opened this issue May 9, 2024 · 0 comments
Open
2 of 8 tasks

Issue with Type Utilities II #135

PotatoEater0127 opened this issue May 9, 2024 · 0 comments

Comments

@PotatoEater0127
Copy link

PotatoEater0127 commented May 9, 2024

Your GreatFrontEnd account email (optional)

shuheng0127@gmail.com

Problematic section

  • Question Description
  • Question Skeleton
  • Question Solution
  • Test Cases (Missing/Incorrect/Unclear)

Type of question

  • JavaScript
  • User Interface
  • System Design
  • Quiz

Describe the issue

In the `isObject` section of the solution, it mentions:

null and undefined are considered Objects

However, it contradicts my observation in the browser console(chrome Version 124.0.6367.119 ). When I used typeof undefined, it actually returns "undefined" rather than"object".

The result also aligns with the documentaion from MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof, which states that typeof undefined should return "undefined" instead of "obejct".

Screenshots (where relevant)

Screen Shot 2024-05-09 at 2 11 33 PM Screen Shot 2024-05-09 at 2 12 31 PM Screen Shot 2024-05-09 at 2 12 49 PM
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

No branches or pull requests

1 participant