Bob Downs

Some developers add comments to their closing braces to indicate what statement each brace ends. For instance, after the first closing brace in Step 2, you might add the comment // end if to indicate that the brace closes the preceding if statement. Especially when your code includes structures nested several levels deep, such comments can make it easier to add or remove levels of nesting.
JavaScript: The Web Warrior Series
Rate this book
Clear rating