REPLit
Replit is a command line interface app.Everything in repl is done via CLI.
-
As in the first lecture,we have printed our name using the command console.log.
-
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.
-
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.
-
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.