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 setting-the-length-of-an-array.md #2535

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Stefan-Stojanovic
Copy link
Collaborator

No description provided.

@enki-hq
Copy link
Collaborator

enki-hq commented Jan 7, 2021

Changelog

File Name Error Message
Pull Request Couldn't find a CHANGELOG entry for this pull request.

If you notice anything wrong with these rules contact andrei@enki.com.

@enki-hq
Copy link
Collaborator

enki-hq commented Jan 7, 2021

Copy link
Contributor

@kapnobatai137 kapnobatai137 left a comment

Choose a reason for hiding this comment

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

some formatting and copy changes

@@ -5,6 +5,8 @@ category: hack
tags:
- introduction
- obscura
links:
- '[Array holes](https://medium.com/better-programming/what-are-holes-in-arrays-3ac5fcbcd1c){website}'
Copy link
Member

Choose a reason for hiding this comment

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

cc @nem035 if there's a better link for this

- size
- `[1,2,undefined,undefined,undefined]`
- `[1,2,<3 empty items>]`
Copy link
Member

Choose a reason for hiding this comment

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

Maybe leave this one as undefined

Suggested change
- `[1,2,<3 empty items>]`
- `[1, 2, undefined, undefined]`
- `[1, 2, <1 empty item>, <1 empty item>]`

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

[Undefined, undefined] or [<1empty sitem> , <1 empty item>]

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Aha, nvm I think I got it. The first correct answer should be:

  • [1, 2, <1 empty item>, <1 empty item>]

and the incorrect one should be

  • [1, 2, undefined, undefined]

right? @sourabhv

Stefan-Stojanovic and others added 7 commits January 7, 2021 16:41
…h-of-an-array.md

Co-authored-by: Andrei Calabangiu <andrei@enki.com>
…h-of-an-array.md

Co-authored-by: Andrei Calabangiu <andrei@enki.com>
…h-of-an-array.md

Co-authored-by: Andrei Calabangiu <andrei@enki.com>
…h-of-an-array.md

Co-authored-by: Andrei Calabangiu <andrei@enki.com>
…h-of-an-array.md

Co-authored-by: Andrei Calabangiu <andrei@enki.com>
@kapnobatai137
Copy link
Contributor

@Stefan-Stojanovic what's left to do for this PR?

@Stefan-Stojanovic
Copy link
Collaborator Author

@Stefan-Stojanovic what's left to do for this PR?

I wasn't sure what to change based on sourabhs comment and was waiting on the reply

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.

None yet

4 participants