Comments let you add notes that JavaScript ignores. Use // for single-line comments:
// This calculates the total price
let total = price + tax
let count = 0 // Start at zero
Comments can appear on their own line or at the end of a code line. Use them to explain why code does something, not what it does. Good code is self-explanatory. Comments clarify intent and context.