Comments in Code Playground?

Can anyone tell me if single line, multi-line comments, or both are possible to do in the grasshopper code playground? it seems impossible to input " /* " in the playground.

Update: Our website now has its own typing-based code playground that supports comments. The key-based editor in our mobile app’s code playground does not support comments, however.

Hey there, it is not possible to add comments from within the app, or to comment out blocks of code.

If you want to leave notes within the code, you can try putting a string on a line by itself and writing your comment there. Like this:

if (animal === 'dog') {
'// this isn\'t technically a comment, but this line of code won\'t do anything'

It’s a wonky workaround, and not ideal, but it works…

Hope this helps!

1 Like