Swift Assign Values To Variables

[Solved] Swift Assign Values To Variables | Swift - Code Explorer | yomemimo.com
Question : Swift Assign Values to Variables

Answered by : samer-saeid

var siteName: String
siteName = "programiz.com"
print(siteName)

Source : | Last Update : Tue, 21 Jun 22

Question : Swift Change Value of a Variable

Answered by : samer-saeid

var siteName = "programiz.com"
// assigning a new value to siteName
siteName = "apple.com"
print(siteName)

Source : | Last Update : Tue, 21 Jun 22

Answers related to swift assign values to variables

Code Explorer Popular Question For Swift