Skip to content

pheralb/node-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐢 Node Exercises:

node -v
  • Run:
npm run start

Exercises:

  1. Create a server.js that when running 'npm run start' says "Hello!".

  2. Create a script to return the result of rolling a 6-sided die when calling it.

  3. Update the script so that the number of faces is variable (4, 6, 8, 12, 20...).

  4. Create a script that, given a sentence, returns the number of words in that sentence.

  5. Modify the script (ex4) to count the number of 'a'.

  6. Create a script that, given the address of a file, counts the number of words in it (using fs).

  7. Create a script that generates a new file with each word on a new line, given a file (using fs).

About

🐢 Exercises with Nodejs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published