Swift Cheat Sheet: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<source lang="swift"> import UIKit var greeting = "Hello " let greetedTo = "World" greeting = greeting + greetedTo //greeting = "\(greeting)\(greetedTo)" print(greeting) </so...") |
No edit summary |
||
Line 8: | Line 8: | ||
print(greeting) | print(greeting) | ||
</source> | </source> | ||
==References== | |||
* [https://www.programiz.com/swift-programming/operators Swift Operators] |
Revision as of 10:08, 8 December 2020
import UIKit
var greeting = "Hello "
let greetedTo = "World"
greeting = greeting + greetedTo
//greeting = "\(greeting)\(greetedTo)"
print(greeting)