the compiler will infer the type of variable or constant, based on what is being assigned to it.
1 2 3 4 5 |
// inference var greetingString = "hello" // greetingString variable will infer the type of String //explicit var greetingString : String = "HadooooKen" |