Can you spot the mistake in this code snippet?
city variable is uninitializedstate variable is uninitialized+= with string-type valuesExcellent! When we want to initialize multiple variables in a line, we need to assign values to each of them or only the last variable gets a value.
Not quite! When we want to initialize multiple variables in a line, we need to assign values to each of them or only the last variable gets a value.