I can't understand interpolation of string | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I can't understand interpolation of string

6th Jan 2021, 8:37 AM
Nafis Sadiq Bhuyan
Nafis Sadiq Bhuyan - avatar
2 Answers
+ 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