Section 1 - Instruction

You've learned how to add comments using double slashes (//). Comments make your Go code easier to understand and remember.

Engagement Message

Ready to practice organizing code with comments?

Section 2 - Practice

Type

Multiple Choice

Practice Question

Which of these is a properly formatted comment in Go?

A. // This calculates the total score B. # This calculates the total score C. <!-- This calculates the total score --> D. -- This calculates the total score

Suggested Answers

  • A - Correct
  • B
  • C
  • D
Section 3 - Practice

Type

Fill In The Blanks

Markdown With Blanks

Add comments to explain what each line does:

Suggested Answers

  • //
  • /*

  • //
Section 4 - Practice

Type

Sort Into Boxes

Practice Question

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal