Swift - Variables and Constants
Identify the error in the following Swift code:
typealias Score = Int let playerScore: Score = "100"
Identify the error in the following Swift code:
typealias Score = Int let playerScore: Score = "100"
Score is an alias for Int, so playerScore must be an integer.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions