variable in swift code example
Example 1: swift how to make a variable
// To create a variable type 'var' 'varName' = '"String" or Int'
var wallet = 100
var name = Joe
Example 2: print variable swift
var str1 = "Hello, world"
print(str1)
// To create a variable type 'var' 'varName' = '"String" or Int'
var wallet = 100
var name = Joe
var str1 = "Hello, world"
print(str1)