Skip to content

Incorrect information #3354

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

Open
internetword opened this issue Feb 5, 2023 · 3 comments
Open

Incorrect information #3354

internetword opened this issue Feb 5, 2023 · 3 comments

Comments

@internetword
Copy link

internetword commented Feb 5, 2023

Array is not a built in class but a constructor function. It can be called without new.
I've been trying to clearly understand the differences between classes and constructor functions and by telling me that a constructor function is a class while in the previous article you told me that a class and a constructor are two different things confuses me even more.

@iliakan
Copy link
Member

iliakan commented Feb 5, 2023

Can you provide links to sections that contradict to each other, as you say?

@internetword
Copy link
Author

internetword commented Feb 5, 2023

Here's a link to Extending built-in classes and here's a link where they clearly said they are two different things (not just two different ways to solve the problem and get the same result).
Object and Date can also be called without new and even the ones like Map and Set that can't be called without new will return function Theirname() { [native code] } as their definition in the console and not class Theirname { [native code] }.

It's the second time I reviewed the exercices to try to get what I failed to understand. I think it would be wise to clearly explain the differences between them and maybe some use cases where it would be better to use one than the other.

I really appreciate the website, its step by step approach toward learning JavaScript is better than most other tools available on the web. I started learning web development on MDN but was quickly overwhelmed when it quickly went from what an object is to prototype to addEventListener method on DOM object to the different capture method like bubble, etc... .

If the team could also make a website this level for CSS and HTML, it would be very good.

@internetword
Copy link
Author

Incorrect information

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

2 participants