-
Requirements:
-
Check:
node -v
- Run:
npm run start
-
Create a server.js that when running 'npm run start' says "Hello!".
-
Create a script to return the result of rolling a 6-sided die when calling it.
-
Update the script so that the number of faces is variable (4, 6, 8, 12, 20...).
-
Create a script that, given a sentence, returns the number of words in that sentence.
-
Modify the script (ex4) to count the number of 'a'.
-
Create a script that, given the address of a file, counts the number of words in it (using fs).
-
Create a script that generates a new file with each word on a new line, given a file (using fs).