From fc58ff5a1cbe758178f97910d5fbb319fe866ce2 Mon Sep 17 00:00:00 2001 From: Tomiris Amirova Date: Wed, 10 Jun 2020 16:38:13 +0600 Subject: [PATCH] Add Clarification to Insructions --- subjects/index-of.en.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/subjects/index-of.en.md b/subjects/index-of.en.md index 955de540..4fbe5920 100644 --- a/subjects/index-of.en.md +++ b/subjects/index-of.en.md @@ -3,15 +3,15 @@ ### Instructions Create 3 functions: -- `indexOf` that return the index of the first occurence of a value -- `lastIndexOf` that return the index of the last occurence of a value -- `includes` that return true if the value was found in the array +- `indexOf` that returns the index of the first occurence of a value +- `lastIndexOf` that returns the index of the last occurence of a value +- `includes` that returns true if the value was found in the array > If a value is not found, the returned index is -1 -> functions should have array element as first argument -> `indexOf` and `lastIndexOf` takes an additionnal `fromIndex` argument -> that allow you to begin searching from a specific index. +> functions should have an array element as first argument, +> both `indexOf` and `lastIndexOf` take an additional `fromIndex` argument +> that allows you to begin searching from a specific index. ### Notions