From 5cf039e5fd6d2ebab145da0322078c11c90165c3 Mon Sep 17 00:00:00 2001 From: Randell Dawson Date: Fri, 26 Apr 2019 17:21:49 -0700 Subject: [PATCH] fix: performed first conversions --- ...ccess-an-arrays-contents-using-bracket-notation.english.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/access-an-arrays-contents-using-bracket-notation.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/access-an-arrays-contents-using-bracket-notation.english.md index 44ba88858f..3fbba3e079 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/access-an-arrays-contents-using-bracket-notation.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/access-an-arrays-contents-using-bracket-notation.english.md @@ -9,7 +9,7 @@ challengeType: 1 The fundamental feature of any data structure is, of course, the ability to not only store data, but to be able to retrieve that data on command. So, now that we've learned how to create an array, let's begin to think about how we can access that array's information. When we define a simple array as seen below, there are 3 items in it: -``` +```js let ourArray = ["a", "b", "c"]; ``` @@ -17,7 +17,7 @@ In an array, each array item has an index. This index doubles as the In order to retrieve an element from an array we can enclose an index in brackets and append it to the end of an array, or more commonly, to a variable which references an array object. This is known as bracket notation. For example, if we want to retrieve the "a" from ourArray and assign it to a variable, we can do so with the following code: -``` +```js let ourVariable = ourArray[0]; // ourVariable equals "a" ```