Scala String Interpolation is how Strings can be constructed in Scala. It will be the way you can add Values inside a String.
Strings in programming languages are chains of character, for instance: "Hello World"
.
You might have noticed the string is contained between quotes: "..."
.
An other thing to notice is the s
preceding the first quote. It is necessary to transform $h
into the content of the value h
.