REPLit

Repl.it

Replit is a command line interface app.Everything in repl is done via CLI.

  1. As in the first lecture,we have printed our name using the command console.log.
  2. The console. log() is a function in JavaScript which is used to print any kind of variables defined before in it or to just print any message that needs to be displayed to the user.
  3. In repl if we want to use user input we have to use "read-line-sync" which should be imported via syntax require('read-line-sync').It will help to use the user input and use it according to the program.
  4. Each and every program works around one thing and that is input >> processing >> output.If you understand this it will be lot easier to understand how the programs works.