Skip to main content
Journey Uncommon Logo
JourneyUncommon
easySwiftarrays dictionaries setsSingle-choice MCQ

What does `removeValue(forKey:)` return when the key exists?

var dict = ["x": 1, "y": 2] let removed = dict.removeValue(forKey: "x")