Strings
Embedding values in text with s-interpolation, length and string functions.
Simple enough for a 5-year-old to understand
s-interpolation
If you put an s at the beginning of the text, you can embed variables inside it using a dollar sign.
val name = "Alex"val age = 36println(s"$name $age years old")🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)