Browse Source

batch changes on JS subject using feed back from team alem

pull/554/head
Clement Denis 5 years ago
parent
commit
ca38a1b784
  1. 3
      subjects/abs.en.md
  2. 3
      subjects/all.en.md
  3. 2
      subjects/block-chain.en.md
  4. 3
      subjects/change.en.md
  5. 3
      subjects/curry-entries.en.md
  6. 3
      subjects/cut-corners.en.md
  7. 3
      subjects/elementary.en.md
  8. 3
      subjects/filter.en.md
  9. 3
      subjects/find-expression.en.md
  10. 3
      subjects/flat.en.md
  11. 3
      subjects/for-each.en.md
  12. 3
      subjects/gougle-search.en.md
  13. 3
      subjects/index-of.en.md
  14. 3
      subjects/is-winner.en.md
  15. 5
      subjects/is.en.md
  16. 3
      subjects/manipulate-entries.en.md
  17. 3
      subjects/manipulate-keys.en.md
  18. 3
      subjects/manipulate-values.en.md
  19. 3
      subjects/mapper.en.md
  20. 3
      subjects/min-max.en.md
  21. 4
      subjects/mutability.en.md
  22. 7
      subjects/nasa.en.md
  23. 6
      subjects/pyramid.en.md
  24. 3
      subjects/quantifiers.en.md
  25. 3
      subjects/race.en.md
  26. 3
      subjects/reduce.en.md
  27. 3
      subjects/repeat.en.md
  28. 3
      subjects/reverser.en.md
  29. 3
      subjects/sign.en.md
  30. 3
      subjects/slicer.en.md
  31. 6
      subjects/triangle.en.md
  32. 3
      subjects/unbreakable.en.md

3
subjects/abs.en.md

@ -19,6 +19,9 @@ You are not allowed to use `Math.abs`, make your own.
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Math.abs = undefined
```

3
subjects/all.en.md

@ -13,6 +13,9 @@ Create a function `all` that works like `Promise.all` but with objects.
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Promise.all = undefined
```

2
subjects/block-chain.en.md

@ -56,6 +56,8 @@ console.log(fork.index) // -> 5
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
const hashCode = str =>
(

3
subjects/change.en.md

@ -20,6 +20,9 @@ Create 2 functions:
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
const sourceObject = {
num: 42,

3
subjects/curry-entries.en.md

@ -33,6 +33,9 @@ You will also have to create for each curry function the following:
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
// prettier-ignore
const personnel = {

3
subjects/cut-corners.en.md

@ -19,6 +19,9 @@ Some restrictions apply:
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Math.round = Math.ceil = Math.floor = Math.trunc = undefined
```

3
subjects/elementary.en.md

@ -10,6 +10,9 @@ Create 3 functions:
> functions should have (a, b) as arguments
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Math.imul = undefined
```

3
subjects/filter.en.md

@ -20,6 +20,9 @@ and that works like the partition function from lodash.
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Array.prototype.filter = undefined
```

3
subjects/find-expression.en.md

@ -21,6 +21,9 @@ It will look something like this `1 *2 *2 +4`
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
const add4 = '+4'
const mul2 = '*2'

3
subjects/flat.en.md

@ -11,6 +11,9 @@ Create the `flat` functions that works like the `.flat` array method
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Array.prototype.flat = undefined
```

3
subjects/for-each.en.md

@ -12,6 +12,9 @@ and that works like the method .forEach
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Array.prototype.forEach = undefined
```

3
subjects/gougle-search.en.md

@ -36,6 +36,9 @@ using a the server name as key.
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
// fake `getJSON` function
let getJSON = async (url) => url

3
subjects/index-of.en.md

@ -22,6 +22,9 @@ Create 3 functions:
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Array.prototype.indexOf = undefined
Array.prototype.lastIndexOf = undefined

3
subjects/is-winner.en.md

@ -24,6 +24,9 @@ displayed like : '1000, 1004, 1008'. The same goes for the results
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
const db = (() => {
//countries that won the FIFA World Cup

5
subjects/is.en.md

@ -2,7 +2,7 @@
### Instructions
Add new function properties to the object `is`` to check a value type
Add new function properties to the object `is` to check a value type
- `is.num` value is a number
- `is.nan` value is NaN
- `is.str` value is a string
@ -25,6 +25,9 @@ Add new function properties to the object `is`` to check a value type
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
const is = {}
```

3
subjects/manipulate-entries.en.md

@ -25,6 +25,9 @@ Create 3 other functions that use your previously create functions:
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
// small database with nutrition facts, per 100 grams
// prettier-ignore

3
subjects/manipulate-keys.en.md

@ -20,6 +20,9 @@ Create 3 functions that works like the `.filter`, `.map` and `.reduce` array met
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
// small database with nutrition facts, per 100 grams
// prettier-ignore

3
subjects/manipulate-values.en.md

@ -24,6 +24,9 @@ You will have a small database to help you with the groceries.
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
// small database with nutrition facts, per 100 grams
// prettier-ignore

3
subjects/mapper.en.md

@ -16,6 +16,9 @@ and that works like the method .flatMap
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Array.prototype.map = undefined
Array.prototype.flatMap = undefined

3
subjects/min-max.en.md

@ -22,6 +22,9 @@ and returns the lowest
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Math.min = Math.max = undefined
```

4
subjects/mutability.en.md

@ -19,7 +19,9 @@ and set his contry to `'FR'`.
### Code provided
this code does not need to be sent for verification
> all code provided will be added to your solution and doesn't need to be submited.
```js
const person = {
name: 'Rick',

7
subjects/nasa.en.md

@ -2,13 +2,10 @@
### Instructions
Create a `nasa` function that takes a number as parameter and returns all
numbers from 1 to the number passed as parameter, with three exception.
Create a `nasa` function that takes a number `N` as a parameter and returns
a string with all numbers from 1 to the `N` separated by whitespace, with three exceptions:
- For numbers divisible by 3, add 'NA'.
- For numbers divisible by 5, add 'SA'.
- For the number that are divisible by 3 and 5 add 'NASA'.

6
subjects/pyramid.en.md

@ -10,14 +10,16 @@ Just like triangle
### Output example
- '*' character and depth of 5 :
- `*` character and depth of 5 :
```
*
***
*****
*******
*********
```
> No new line in last line
### Notions

3
subjects/quantifiers.en.md

@ -21,6 +21,9 @@ The use of `[].every` and `[].some` is forbidden for this exercise.
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Array.prototype.some = Array.prototype.every = undefined
```

3
subjects/race.en.md

@ -16,6 +16,9 @@ and a number and return the first resolved values up to the number given.
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Promise.race = undefined
```

3
subjects/reduce.en.md

@ -35,6 +35,9 @@ The use of `[].reduce` and `[].reduceRight` is forbidden for this exercise.
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Array.prototype.reduce = undefined
Array.prototype.reduceRight = undefined

3
subjects/repeat.en.md

@ -16,6 +16,9 @@ Of course you may not use the method directly
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
String.prototype.repeat = undefined
```

3
subjects/reverser.en.md

@ -13,6 +13,9 @@ Like `[].reverse()` but working also for strings (without using the actual metho
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Array.prototype.reverse = undefined
```

3
subjects/sign.en.md

@ -19,6 +19,9 @@ if they both have the same sign
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Math.sign = undefined
```

3
subjects/slicer.en.md

@ -13,6 +13,9 @@ It takes an additional first argument which is the string or the array
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
Array.prototype.slice = undefined
String.prototype.slice = undefined

6
subjects/triangle.en.md

@ -8,14 +8,16 @@ of the number passed as argument.
### Output example
- '*' character and depth of 5 :
- `*` character and depth of 5:
```
*
**
***
****
*****
```
> No new line in last line
### Notions

3
subjects/unbreakable.en.md

@ -17,6 +17,9 @@ Implement 2 functions:
### Code provided
> all code provided will be added to your solution and doesn't need to be submited.
```js
String.prototype.split = undefined
String.prototype.match = undefined

Loading…
Cancel
Save