Skip to main content
Logo image

Section 3.6 Putting Comments in your Code

It is important to put comments throughout your code, both for purposes of readability of your code and so that you yourself can remember what you were thinking when you wrote the code. There are two ways to do so, both of which are demonstrated in the code below:

admin.....open in new window

Activity 3.6.

Try putting a comment inside another comment, so something like /*This is /*comment inside a */ comment */. What happens when you nest a comment inside another comment?