Swift - Variables and Constants
Identify the error in this Swift code:
var name = "Alice" name = 42 print(name)
var name = "Alice" name = 42 print(name)
name is inferred as String because of initial value "Alice".15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions