--- id: 56bbb991ad1ed5201cd392ca title: Access Array Data with Indexes challengeType: 1 guideUrl: 'https://arabic.freecodecamp.org/guide/certificates/access-array-data-with-indexes' videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert((function(){if(typeof myArray !== "undefined" && typeof myData !== "undefined" && myArray[0] === myData){return true;}else{return false;}})(), "The variable myData should equal the first value of myArray.");' - text: يجب الوصول إلى البيانات في متغير myArray باستخدام تدوين قوس. testString: 'assert((function(){if(code.match(/\s*=\s*myArray\[0\]/g)){return true;}else{return false;}})(), "The data in variable myArray should be accessed using bracket notation.");' ```
## Challenge Seed
```js // Example var ourArray = [50,60,70]; var ourData = ourArray[0]; // equals 50 // Setup var myArray = [50,60,70]; // Only change code below this line. ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```