I can't understand interpolation of string | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

I can't understand interpolation of string

6th Jan 2021, 8:37 AM
Nafis Sadiq Bhuyan
Nafis Sadiq Bhuyan - avatar
2 Respuestas
+ 1
Try to read the below link, example 7 in basic output explains string interpolation. https://www.programiz.com/swift-programming/basic-input-output
6th Jan 2021, 10:29 AM
Ipang
+ 1
This is a fancy name for what is actually a very simple thing: combining variables and constants inside a string. var name = "John Martin" var age = 24 "My name is \(name), and age is \(age)"
24th Feb 2021, 6:47 AM
Dhaval Patoliya
Dhaval Patoliya - avatar