Like some other languages, such as JavaScript and Ruby, Kotlin supports "string interpolation". Using $ as the prefix of a variable name causes Kotlin to replace the $-prefixed symbol with the value of the variable.

You can learn more about this in:
Run Expand Edit