Kotlin builds strings without noisy concatenation. Inside a string literal, $name inserts a simple variable; ${expression} inserts any expression — a function call, arithmetic, or property chain. This is called string interpolation.
$ and ${ }
Kotlin builds strings without noisy concatenation. Inside a string literal, $name inserts a simple variable; ${expression} inserts any expression — a function call, arithmetic, or property chain. This is called string interpolation.