Kotlin theorytheory 0/50 · 0%
Fundamentals · easy

5. String Templates

Easy string concatenation.

Kotlin allows embedding variables and expressions directly into strings using the $ symbol.

Check your understanding

  1. 1. How to embed an expression?

  2. 2. How to print $ literally?