Question: What is a channel?

  1. a global variable
  2. a medium for sending values between goroutines
  3. a dynamic array of values
  4. a lightweight thread for concurrent programming

Answer: The correct answer of the above question is Option B:a medium for sending values between goroutines