Beginner
Go (Golang)
Q26 / 100
What is the range keyword used for?
Correct! Well done.
Incorrect.
The correct answer is B) Iterating over slices, maps, strings, channels, and arrays returning index/key and value
B
Correct Answer
Iterating over slices, maps, strings, channels, and arrays returning index/key and value
Explanation
for i, v := range slice { } iterates with index and value. for k, v := range myMap { } iterates map keys and values.
Progress
26/100