From 408f6f7740c8e209446fe3806b94bf71f8295791 Mon Sep 17 00:00:00 2001 From: miguel Date: Thu, 13 Jan 2022 10:51:39 +0000 Subject: [PATCH] changing readmes according to the students --- subjects/chunky/README.md | 7 +++---- subjects/index-of/README.md | 6 +++--- subjects/physics/README.md | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/subjects/chunky/README.md b/subjects/chunky/README.md index 0b6e131a..abab55fd 100644 --- a/subjects/chunky/README.md +++ b/subjects/chunky/README.md @@ -2,8 +2,7 @@ ### Instructions -Create the `chunk` function that returns an array of elements -split into groups the length of the given size. +Create the `chunk` function which has as parameters an `array` that will be split and an `integer` which is the size that the array should be split. -If array can't be split evenly, -the final chunk will be the remaining elements. +The function will return an array of elements divided into groups of the length of the given size. +If the array cannot be split evenly, the final part will be the remaining elements. diff --git a/subjects/index-of/README.md b/subjects/index-of/README.md index 1bc35dda..b41f7384 100644 --- a/subjects/index-of/README.md +++ b/subjects/index-of/README.md @@ -4,9 +4,9 @@ Create 3 functions: -- `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 +- `indexOf` which returns the index of the first occurence of a value and takes as arguments an array to be searched, the value to be matched, and optionally the index from where to start searching from. +- `lastIndexOf` which works just like the previous function but returns the index of the last occurence of a value +- `includes` which returns true if the value was found in the array > If a value is not found, the returned index is -1 diff --git a/subjects/physics/README.md b/subjects/physics/README.md index 42353cb2..420aa378 100644 --- a/subjects/physics/README.md +++ b/subjects/physics/README.md @@ -17,7 +17,7 @@ So he wants to know for an object with : whats the acceleration of that object. Create a function called `getAcceleration` that given an object with the values of `{ f: 10, m: 5, Δv: 100, Δt: 50, t:1, d: 10 }` -it must calculate the acceleration. If its not possible to calculate it you must return `impossible` +it must calculate the acceleration. If its not possible to calculate it you must return the string `impossible` ### Formulas