You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
## tell-me-vip
|
|
|
|
|
|
|
|
### 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.
|
|
|
|
|
|
|
|
The output must print one guest per line, in ascending alphabetic
|
|
|
|
order, and formated as following: `Number. Lastname Firstname` (starting from 1).
|
|
|
|
|
|
|
|
### Notions
|
|
|
|
|
|
|
|
- [Node file system: `readFile`](https://nodejs.org/api/fs.html#fs_fspromises_readfile_path_options)
|
|
|
|
- [Node path: `join`](https://nodejs.org/api/path.html#path_path_join_paths)
|
|
|
|
- [`JSON.parse()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse)
|
|
|
|
- [`Array.prototype.filter()` method](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter)
|