diff --git a/subjects/is.en.md b/subjects/is.en.md index c7aeacc5..488baf26 100644 --- a/subjects/is.en.md +++ b/subjects/is.en.md @@ -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 - -- [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 = {} -``` +## 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 = {} +``` diff --git a/subjects/min-max.en.md b/subjects/min-max.en.md index 25a11a5f..bbc0573f 100644 --- a/subjects/min-max.en.md +++ b/subjects/min-max.en.md @@ -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/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 -``` +## 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 +```