Answers for "continue keyword in swift language"

0

continue keyword in swift language

var songs = ["Shake it Off", "You Belong with Me", "Look What You Made Me Do"]

for song in songs {
    if song == "You Belong with Me" {
        continue
    }

    print("My favorite song is \(song)")
}
Posted by: Guest on February-24-2022

Code answers related to "Swift"

Browse Popular Code Answers by Language