From 93e55546150c54ebef5f88fa3426f1e514279888 Mon Sep 17 00:00:00 2001 From: Tom <20648924+moT01@users.noreply.github.com> Date: Wed, 1 May 2019 20:08:39 -0700 Subject: [PATCH] fix: added semi-colon not in original code Co-Authored-By: RandellDawson <5313213+RandellDawson@users.noreply.github.com> --- .../add-key-value-pairs-to-javascript-objects.english.md | 2 +- ...k-for-the-presence-of-an-element-with-indexof.english.md | 6 +++--- .../copy-array-items-using-slice.english.md | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/add-key-value-pairs-to-javascript-objects.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/add-key-value-pairs-to-javascript-objects.english.md index 4616f2f063..64e9338e4d 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/add-key-value-pairs-to-javascript-objects.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/add-key-value-pairs-to-javascript-objects.english.md @@ -27,7 +27,7 @@ let userData = FCC_User.followers; This is called dot notation. Alternatively, we can also access the property with brackets, like so: ```js -let userData = FCC_User['followers'] +let userData = FCC_User['followers']; // userData equals 572 ``` diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/check-for-the-presence-of-an-element-with-indexof.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/check-for-the-presence-of-an-element-with-indexof.english.md index ca310ee25e..a511e80800 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/check-for-the-presence-of-an-element-with-indexof.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/check-for-the-presence-of-an-element-with-indexof.english.md @@ -12,9 +12,9 @@ For example: ```js let fruits = ['apples', 'pears', 'oranges', 'peaches', 'pears']; -fruits.indexOf('dates') // returns -1 -fruits.indexOf('oranges') // returns 2 -fruits.indexOf('pears') // returns 1, the first index at which the element exists +fruits.indexOf('dates'); // returns -1 +fruits.indexOf('oranges'); // returns 2 +fruits.indexOf('pears'); // returns 1, the first index at which the element exists ``` diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/copy-array-items-using-slice.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/copy-array-items-using-slice.english.md index 0ea98959b7..994418da23 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/copy-array-items-using-slice.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/copy-array-items-using-slice.english.md @@ -14,7 +14,6 @@ let weatherConditions = ['rain', 'snow', 'sleet', 'hail', 'clear']; let todaysWeather = weatherConditions.slice(1, 3); // todaysWeather equals ['snow', 'sleet']; // weatherConditions still equals ['rain', 'snow', 'sleet', 'hail', 'clear'] - ``` In effect, we have created a new array by extracting elements from an existing array.