mirror of https://github.com/01-edu/public.git
Clement Denis
4 years ago
2 changed files with 63 additions and 63 deletions
@ -1,33 +1,33 @@ |
|||||||
## Is |
## Is |
||||||
|
|
||||||
### Instructions |
### 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.num` value is a number |
||||||
- `is.nan` value is NaN |
- `is.nan` value is NaN |
||||||
- `is.str` value is a string |
- `is.str` value is a string |
||||||
- `is.bool` value is a boolean |
- `is.bool` value is a boolean |
||||||
- `is.undef` value is undefined |
- `is.undef` value is undefined |
||||||
- `is.def` value is defined |
- `is.def` value is defined |
||||||
- `is.arr` value is an array |
- `is.arr` value is an array |
||||||
- `is.obj` value is a simple object or null objects |
- `is.obj` value is a simple object or null objects |
||||||
- `is.fun` value is a function |
- `is.fun` value is a function |
||||||
- `is.truthy` value is truthy |
- `is.truthy` value is truthy |
||||||
- `is.falsy` value is falsy |
- `is.falsy` value is falsy |
||||||
|
|
||||||
|
|
||||||
### Notions |
### Notions |
||||||
|
|
||||||
- [https://nan-academy.github.io/js-training/examples/primitive-and-operators](https://nan-academy.github.io/js-training/examples/primitive-and-operators) |
- [nan-academy.github.io/js-training/examples/primitive-and-operators](https://nan-academy.github.io/js-training/examples/primitive-and-operators.js) |
||||||
- [https://devdocs.io/javascript/operators/typeof](https://devdocs.io/javascript/operators/typeof) |
- [devdocs.io/javascript/operators/typeof](https://devdocs.io/javascript/operators/typeof) |
||||||
- [https://developer.mozilla.org/en-US/docs/Glossary/Truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy) |
- [developer.mozilla.org/en-US/docs/Glossary/Truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy) |
||||||
- [https://developer.mozilla.org/en-US/docs/Glossary/Falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) |
- [developer.mozilla.org/en-US/docs/Glossary/Falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) |
||||||
|
|
||||||
|
|
||||||
### Code provided |
### Code provided |
||||||
|
|
||||||
> all code provided will be added to your solution and doesn't need to be submited. |
> all code provided will be added to your solution and doesn't need to be submited. |
||||||
|
|
||||||
```js |
```js |
||||||
const is = {} |
const is = {} |
||||||
``` |
``` |
||||||
|
@ -1,30 +1,30 @@ |
|||||||
## Min Max |
## Min Max |
||||||
|
|
||||||
### Instructions |
### Instructions |
||||||
|
|
||||||
Create the `max` function that takes 2 number as arguments |
Create the `max` function that takes 2 number as arguments |
||||||
and returns the greatest |
and returns the greatest |
||||||
|
|
||||||
> You must not just use `Math.max`, make your own. |
> You must not just use `Math.max`, make your own. |
||||||
|
|
||||||
Create the `min` function that takes 2 number as arguments |
Create the `min` function that takes 2 number as arguments |
||||||
and returns the lowest |
and returns the lowest |
||||||
|
|
||||||
> You must not just use `Math.min`, make your own. |
> You must not just use `Math.min`, make your own. |
||||||
|
|
||||||
|
|
||||||
### Notions |
### Notions |
||||||
|
|
||||||
- [nan-academy.github.io/js-training/examples/functions.js](https://nan-academy.github.io/js-training/examples/functions.js) |
- [nan-academy.github.io/js-training/examples/functions.js](https://nan-academy.github.io/js-training/examples/functions.js) |
||||||
- [nan-academy.github.io/js-training/examples/ternary.js](https://nan-academy.github.io/js-training/examples/ternary.js) |
- [nan-academy.github.io/js-training/examples/ternary.js](https://nan-academy.github.io/js-training/examples/ternary.js) |
||||||
- [devdocs.io/javascript/global_objects/array/Math/min](https://devdocs.io/javascript/global_objects/array/Math/min) |
- [devdocs.io/javascript/global_objects/math/min](https://devdocs.io/javascript/global_objects/math/min) |
||||||
- [devdocs.io/javascript/global_objects/array/Math/max](https://devdocs.io/javascript/global_objects/array/Math/max) |
- [devdocs.io/javascript/global_objects/math/max](https://devdocs.io/javascript/global_objects/math/max) |
||||||
|
|
||||||
|
|
||||||
### Code provided |
### Code provided |
||||||
|
|
||||||
> all code provided will be added to your solution and doesn't need to be submited. |
> all code provided will be added to your solution and doesn't need to be submited. |
||||||
|
|
||||||
```js |
```js |
||||||
Math.min = Math.max = undefined |
Math.min = Math.max = undefined |
||||||
``` |
``` |
||||||
|
Loading…
Reference in new issue