Project 6

This project tests your ability to Please write a script named tail.js that:
  1. takes a file name as an argument from the command line (this is a required argument);
  2. another argument (optional) is to be an integer number;
  3. reads the specified file;
  4. prints a number of the last lines from the file;
  5. the number of lines to print is either 10 (the default value) or the number assigned by the other argument.
Additional requirements are: