mirror of https://github.com/01-edu/public.git
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.
Chris
d5747ddcf6
|
4 years ago | |
---|---|---|
.. | ||
README.md | 4 years ago |
README.md
verydisco
Instructions
Create a verydisco.mjs
script that :
- takes the 1st argument from the command line (after the program name)
- makes it very disco:
- cut each word from this argument in 2 (rounded up),
- re-compose a word by concatenating the chunks in the other order
- display the result in console
If the argument passed is a sentence, each word of the sentence must be "very disco".
For example:
discovery
would printverydisco
(🕺🏼) in console.Node is awesome
would printdeNo si omeawes
in the console.