Ask coding questions

← Back to all posts
What am I doing wrong?
svsarahval

I follow the instructions from the video on how to type in code in swift for something simple as stating my name, in a string concatenate. Please someone explain it to me I am new to this.

Answered by SixBeeps [earned 5 cycles]
View Answer
Voters
Coder100
svsarahval
Comments
hotnewtop
SixBeeps

String concatenation is just combining strings. You do it by using the + operator on two strings. For example, "Hello, " + "Sarah" results in the string "Hello, Sarah".

svsarahval

Sorry wanted to respond a long time ago, thank you. It was not working for me to do, but i will try again. Thanks again! @SixBeeps