Skip to content

Sprint-2/debug/address.js: Add bracket notation for object property access example - #433

Merged
illicitonion merged 1 commit into
CodeYourFuture:solutionsfrom
tyzia:sprint-2-debug-address
Mar 24, 2025
Merged

Sprint-2/debug/address.js: Add bracket notation for object property access example#433
illicitonion merged 1 commit into
CodeYourFuture:solutionsfrom
tyzia:sprint-2-debug-address

Conversation

@tyzia

@tyzia tyzia commented Mar 22, 2025

Copy link
Copy Markdown
Contributor

This PR adds example with accessing object property with bracket notation. The original "buggy" code had object[0] which is wrong only in terms of accessing property by index as for arrays, but it is not buggy in terms of brackets [] which can be actually used in accessing object property.

I decided to add this as an example to solutions branch.

@illicitonion illicitonion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@illicitonion
illicitonion merged commit c0a0113 into CodeYourFuture:solutions Mar 24, 2025
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.

2 participants