Freecodecamp: [beta] Clarify instruction for "Basic Data Structures: Access an Array's Contents Using Bracket Notation"

Created on 2 Feb 2017  Â·  9Comments  Â·  Source: freeCodeCamp/freeCodeCamp

Challenge access-an-arrays-contents-using-bracket-notation has an issue.

Hey, Contributor!

In the final paragraph of the instruction, I think the contents of the parenthesis could be slightly clarified.

I suggest we change "(1st index)" to (index 1), as "1st index" could be interpreted as the first index of an array - index 0.

If you want to fix this, please read CONTRIBUTING.md to get started.

When you're all set, replace this line with the following, and make your commit.

"In order to complete this challenge, set the 2nd position (index <code>1</code>) of <code>myArray</code> to anything you want, besides <code>\"b\"</code>."

If you have any questions, please come chat with us in the Contributors Chat Room.

Happy Coding :smile:

first timers only help wanted learn

Most helpful comment

@Greenheart agreed! Looks like we're on a first-timers-only roll tonight!

All 9 comments

@Greenheart agreed! Looks like we're on a first-timers-only roll tonight!

@no-stack-dub-sack Indeed! More to come in the coming days :smile:

This should probably be a first-timers-only as well, if we add better instructions.

I would like to fix this issue.

It isn't showing as completed, with a green check mark. though all tests do pass.

@rudolphh Could you post your code here, to help us reproduce? :blush:

let myArray = ["a", "b", "c", "d"];
// change code below this line
myArray[1] = "h";
//change code above this line
console.log(myArray);

On Feb 19, 2017 10:45 PM, "Samuel Plumppu" notifications@github.com wrote:

@rudolphh https://github.com/rudolphh Could you post your code here, to
help us reproduce? 😊

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/13056#issuecomment-281000318,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA57Fh-D4-SQRQ8SlJwLjXU9kmL72gEXks5reTaSgaJpZM4L0oml
.

@rudolphh Thanks!

I can get this code to pass in both Firefox 51 and Chrome 56. Can try if it works after doing a hard refresh of the challenge page (CRTL+SHIFT+R) and then pressing the "Reset"-button? :blush:

However I noticed another issue - the messages for the test cases needs to be updated (I'll submit a quick PR for this right away).

did the hard refresh and reset. still the same. using chrome 56

On Mon, Feb 20, 2017 at 1:41 AM, Samuel Plumppu notifications@github.com
wrote:

@rudolphh https://github.com/rudolphh Thanks!

I can get this code to pass in both Firefox 51 and Chrome 56. Can try if
it works after doing a hard refresh of the challenge page (CRTL+SHIFT+R)
and then pressing the "Reset"-button? 😊

However I noticed another issue - the messages for the test cases needs to
be updated (I'll submit a quick PR for this right away).

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/13056#issuecomment-281030817,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA57FrguOH02wBvbaFXNJg4NdY5OtZeqks5reV-vgaJpZM4L0oml
.

@rudolphh Hmm... That's weird :smile:

Was this page helpful?
0 / 5 - 0 ratings