Check out example codes for "print things in swift". It will help you in understanding the concepts better.

Code Example 1

print("Hello World")
print("Hello Again") 
//prints Hello World, and then Hello Again on a new line
//Hello World
//Hello Again
print("Hello World", terminator="")
print("Hello Again")
//prints Hello World and then Hello Again on the same line
//Hello WorldHello Again
//prints 123.45
var message: String = "Hello"
//prints Hello

Learn ReactJs, React Native from