-
-
Notifications
You must be signed in to change notification settings - Fork 224
Lesson18, change for clarity #1325
Copy link
Copy link
Open
Labels
contentIssues with the lessons, practices, including their code examplesIssues with the lessons, practices, including their code examples
Metadata
Metadata
Assignees
Labels
contentIssues with the lessons, practices, including their code examplesIssues with the lessons, practices, including their code examples
Type
Fields
Give feedbackNo fields configured for issues without a type.
within lesson 18, there is a point when we talk about "unwrapping" the for loop with this example code
Now, i know the purpose of this lesson isn't teaching how to call on an array like this, but I find this block of code is confusing because it makes it look like, if you had an array of [3, 4, 5] you would write the code like this:
and obviously, this would give you an error since the array doesn't actually have any data in the #3 cell. but to someone who doesn't know just enough about coding to know the difference, this could cause confusion for them in the future.
I would recommend making the data in the array different from the address of the array, and with a little explanation as to what calling
array[0]means