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 index.md #25577

Merged
merged 1 commit into from
Mar 23, 2023
Merged

Update index.md #25577

merged 1 commit into from
Mar 23, 2023

Conversation

Sam-Gram
Copy link
Contributor

Lambda functions are a part of ES6, so an example claiming to be before ES6 using them is confusing.

Description

I was reading about IIFE and noticed that the example about how things were before ES6 was using a lambda in an example, which doesn't really demonstrate IIFE before ES6.

Motivation

I found the example confusing as I read it with my old ES5 mental picture and confused myself for a second. I hope that this change will help readers have better clarity on "the gold 'ol days of JavaScript".

Additional details

Related issues and pull requests

Lambda functions are a part of ES6, so an example claiming to be before ES6 using them is confusing.
@Sam-Gram Sam-Gram requested a review from a team as a code owner March 23, 2023 17:32
@Sam-Gram Sam-Gram requested review from hamishwillee and removed request for a team March 23, 2023 17:32
@github-actions github-actions bot added the Content:Glossary Glossary entries label Mar 23, 2023
Copy link
Collaborator

@wbamberg wbamberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Sam-Gram , this makes sense to me.

@github-actions
Copy link
Contributor

Preview URLs

@wbamberg wbamberg merged commit 766862c into mdn:main Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Glossary Glossary entries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants