Day 3 - Operators and Conditions
Day 3 of 100 days of Swift course by Paul Hudson
More basics, operators and conditions.
What I have noticed today is that I am getting caught on the questions where different types are being compared.
I.E. an Array
with an single string compared to a String
.
var singers = ["Taylor Swift"]
print(singers == "Taylor Swift" ? "Success" : "Failure")
https://gist.github.com/bitterpilot/7ab3e1d57c16e5592a023b1b1b4f416c#file-day-3-swift