Skip to content

Day 2: Functions Defined as Data Type #296

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
Mroussell opened this issue Mar 21, 2022 · 0 comments
Open

Day 2: Functions Defined as Data Type #296

Mroussell opened this issue Mar 21, 2022 · 0 comments

Comments

@Mroussell
Copy link

In the Day 2 markdown file, "02_day_data_types.md". Functions are labeled as a non-primitive data type in this markdown file. Functions are themselves callable objects in javascript. As this is a tutorial for beginners, it might be best to leave functions out of that definition. Labeling functions in this way is not completely true and could cause confusion. A good alternative may be labeling the special data types, null and undefined, and having an objects section where it is explained that objects include functions, arrays, maps, and so on.

This is merely a suggestion, hope it is helpful.
Thank you!

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