PRACTICE / UNDERSTAND / REPEAT
Go practice question
Practice declarations with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
1 questionAnswers explainedFree · no login
Try this question
Inside a function, which operator declares and initializes `count`?
Answer & explanation
Answer: :=
Go’s short declaration operator is `:=`; plain `=` assigns to an already-declared variable.