|
|
|
@ -4,11 +4,11 @@
|
|
|
|
|
|
|
|
|
|
Create the following functions: |
|
|
|
|
|
|
|
|
|
- `id` that takes one argument and return it |
|
|
|
|
- `getLength` that takes an array or a string and return its length |
|
|
|
|
- `id` that takes one argument and returns it. |
|
|
|
|
- `getLength` that takes an array or a string and returns its length. |
|
|
|
|
|
|
|
|
|
### Notions |
|
|
|
|
|
|
|
|
|
- [nan-academy.github.io/js-training/examples/functions](https://nan-academy.github.io/js-training/examples/functions.js) |
|
|
|
|
- [nan-academy.github.io/js-training/examples/data-structures](https://nan-academy.github.io/js-training/examples/data-structures.js) |
|
|
|
|
- [nan-academy.github.io/js-training/examples/get](https://nan-academy.github.io/js-training/examples/get.js) |
|
|
|
|
- [Functions](https://nan-academy.github.io/js-training/examples/functions.js) |
|
|
|
|
- [Data Structures](https://nan-academy.github.io/js-training/examples/data-structures.js) |
|
|
|
|
- [Get](https://nan-academy.github.io/js-training/examples/get.js) |
|
|
|
|