Comments


A comment in programming is text in our source code that the compiler ignores. And if it is ignored, why do we put it on? Usually to give us internal explanations of what the function of each part of the program is. They are also very useful for temporarily discarding code fragments, without having to delete them, and thus facilitate their later recovery.

Comments in programming are essential:

Comments in Scratch

In Scratch you can add comments from the code editing window associated with each object. Comments can be either associated with a block or on the editing window itself. They are added by right-clicking on the place where we want to insert the comment.

imagen.png

Once added, they remain as visible notes in the code editing area.

imagen.png

Of course in Scratch there is no option to comment and uncomment blocks so that they are not taken into account by the compiler. The option available to do this is to separate the event that determines the execution of that block and the code will be temporarily deactivated.

imagen.png


Revision #7
Created 15 October 2023 18:58:48 by Ana López Floría
Updated 11 January 2024 19:30:49 by Ana López Floría