If you have installed the REPL correctly, then if you type scala in your console/terminal, then your screen should be something similar to below
There are two details to make note of.
Just to remind that scala runs on top of the JVM
Entering and exiting the REPL
As in the previous example, you can enter into the shell by typing in Scala and exit out of them by typing in :quit
Type in :help which brings up lot of help options.Over the time we can achieve mastery, until then :help can be our Jarvis Co-pilot
Ok, let's start with some simple examples.
Basic Calculator expressions
Note down two things, res0-4 and there is an Int besides it, which we will discuss in the following slides.
Hopefully that should get you started with the REPL.We will continue to explore Scala through the REPL as well as use Intellij.
The REPL is particularly handy to write some quick code to test out scala logic.The error messages are also quite helpful.Now with armed with this tool, let's start to explore the world of Scala.