Swift - Variables and Constants
Identify the error in this Swift code:
var name: String = 123 print(name)
var name: String = 123 print(name)
name is declared as String but assigned an integer 123, which is a type mismatch.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions