Scala distinguishes between numbers and strings!
In Scala,
"15"(with quotes) is considered astring, while15(without quotes) is considered anumber.For example, computers can perform mathematical operations on numbers, but not on strings. More on this in the next lessons.
Free plan: 30 tutor messages. Premium is unlimited.
Saved
Ctrl + Enter to check