How do I comment in CoffeeScript? “/* this */” doesn't work

后端 未结 3 1621
广开言路
广开言路 2020-12-23 23:45

In what ways can you comment in CoffeeScript?

The documentation say you can use three hash symbols to start and close a comment block:

###
  Comments         


        
3条回答
  •  孤城傲影
    2020-12-24 00:45

    Use a single # sign

    # like this
    

    One character seems pretty minimal ;)

    Also:

    ###
    This block comment (useful for ©-Copyright info) also gets 
    passed on to the browsers HTML /* like this! */
    ###
    

提交回复
热议问题