Go to https://makecode.microbit.org, click on the gearwheel menu and select Extensions, search for comments and select this extension. Once you load the extension you should see a new category named Comments.
Following are the API reference:
The ||comments.line|| block adds a comments to the block
comments.line("one line comment");MIT
- for PXT/microbit (The metadata above is needed for package search.)
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.