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.

21 lines
744 B

## verydisco-reverso
### Instructions
Create a `verydisco-reverso.mjs` script that:
4 years ago
- takes the name of a file (with the extension) as a first argument
- reads this file
- deciphers the content of this file by reversing it from the `very disco` mode
- prints the result in the console
For example:
4 years ago
- Reading the `verydisco` content of your `verydisco.txt` file would print `discovery` in console.
### Notions
4 years ago
- [Node file system: `readFile`](https://nodejs.org/api/fs.html#fs_fspromises_readfile_path_options)
- [try...catch](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch)
- [`Math.floor()` function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor)