String Template in Kotlin
Level 126 keystrokes
Uses a string template to embed the result of an expression in a string.
Kotlin code
// ${...} evaluates the expression inside and inserts the result// 5 + 3 becomes 8, so this prints "Value: 8"1println("Value: ${5 + 3}")Output
Value: 8
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this Kotlin code and how often they appear.
"× 2:× 1(× 1)× 1{× 1}× 1+× 1$× 1