Browse Source

changing readmes according to the students

pull/926/head
miguel 3 years ago
parent
commit
408f6f7740
  1. 7
      subjects/chunky/README.md
  2. 6
      subjects/index-of/README.md
  3. 2
      subjects/physics/README.md

7
subjects/chunky/README.md

@ -2,8 +2,7 @@
### Instructions ### Instructions
Create the `chunk` function that returns an array of elements 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.
split into groups the length of the given size.
If array can't be split evenly, The function will return an array of elements divided into groups of the length of the given size.
the final chunk will be the remaining elements. If the array cannot be split evenly, the final part will be the remaining elements.

6
subjects/index-of/README.md

@ -4,9 +4,9 @@
Create 3 functions: Create 3 functions:
- `indexOf` that returns the index of the first occurence of a value - `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` that returns the index of the last occurence of a value - `lastIndexOf` which works just like the previous function but returns the index of the last occurence of a value
- `includes` that returns true if the value was found in the array - `includes` which returns true if the value was found in the array
> If a value is not found, the returned index is -1 > If a value is not found, the returned index is -1

2
subjects/physics/README.md

@ -17,7 +17,7 @@ So he wants to know for an object with :
whats the acceleration of that object. 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 }` 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 ### Formulas

Loading…
Cancel
Save