mirror of https://github.com/01-edu/public.git
Format tell-me-vip & tell-me-who subjects
This commit is contained in:
parent
2b376b7acc
commit
045e3936a1
|
@ -2,7 +2,11 @@
|
||||||
|
|
||||||
### Instructions
|
### Instructions
|
||||||
|
|
||||||
Create a `tell-me-vip.mjs` script that filters the guests who actually answered 'YES' to your invitation, and save this list in a `vip.txt` file.
|
Create a `tell-me-vip.mjs` script that filters the guests who actually answered
|
||||||
|
'YES' to your invitation, and save this list in a `vip.txt` file.
|
||||||
|
|
||||||
|
The output must print one guest per line, in ascending alphabetic
|
||||||
|
order, and formated as following: `Number. Lastname Firstname` (starting from 1).
|
||||||
|
|
||||||
### Notions
|
### Notions
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,15 @@
|
||||||
|
|
||||||
### Instructions
|
### Instructions
|
||||||
|
|
||||||
Create a `tell-me-how-who.mjs` script that takes your folder path as an argument and print the names of the guests that answered to your invitation in the console.
|
Create a `tell-me-who.mjs` script that takes your folder path as an argument
|
||||||
The output must print one guest per line, in ascending alphabetic order, and formated as following: `Number. Lastname Firstname` (number beginning at 1).
|
and print the names of the guests that answered to your invitation in the
|
||||||
|
console.
|
||||||
|
|
||||||
|
The output must print one guest per line, in ascending alphabetic
|
||||||
|
order, and formated as following: `Number. Lastname Firstname` (starting from 1).
|
||||||
|
|
||||||
### Notions
|
### Notions
|
||||||
|
|
||||||
- [Node file system: `readdir`](https://nodejs.org/api/fs.html#fs_fspromises_readdir_path_options)
|
- [Node file system: `readdir`](https://nodejs.org/api/fs.html#fs_fspromises_readdir_path_options)
|
||||||
- [`Array.prototype.map()` method](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)
|
- [`Array.prototype.map()` method](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)
|
||||||
- [`String.prototype.split()` method](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)
|
- [`String.prototype.split()` method](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)
|
||||||
|
@ -13,4 +18,3 @@ The output must print one guest per line, in ascending alphabetic order, and for
|
||||||
- [`String.prototype.slice()` method](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice)
|
- [`String.prototype.slice()` method](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice)
|
||||||
- [`String.prototype.concat()` method](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/concat)
|
- [`String.prototype.concat()` method](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/concat)
|
||||||
- [`Array.prototype.sort()` method](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)
|
- [`Array.prototype.sort()` method](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue