Programming Concepts Tutorial

Learn the fundamental concepts of computer programming

Comments

Comments in Code

Comments are lines of text in your code that the computer completely ignores when running the program. They are meant entirely for humans (you, or other programmers reading your code).

Why use comments?

  • To explain what a block of code does.
  • To leave notes for future developers.
  • To temporarily disable a line of code during debugging (commenting out).

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics