Answers for "swift string interpolation"

0

string interpolation swift 5

let age = 30
let name = "Jotaro"

print("Hello my name is \(name) and I'm \(age) years old")
Posted by: Guest on March-14-2020
0

swift variable in a string

let x = 10
let string = "x equals \(x) and you can also put expressions here \(5*2)"
Posted by: Guest on January-07-2021
0

declare empty string in swift

// Create a literal empty string
var emptyString = ""

// Create an optional string
var emptyVariable: String?  // This allows this variable to have a null value, or nil in swift
Posted by: Guest on May-22-2020

Code answers related to "swift string interpolation"

Code answers related to "Swift"

Browse Popular Code Answers by Language