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