This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
entwine:understanding_grunt [2016/05/23 22:53] admin |
entwine:understanding_grunt [2016/05/23 22:55] admin |
||
---|---|---|---|
Line 60: | Line 60: | ||
Notice how you're also allowed to spread out a definition of both arrays and objects across multiple lines. It's a good idea to indent these definitions so you can make sure that you keep the number of {s and }s equal. | Notice how you're also allowed to spread out a definition of both arrays and objects across multiple lines. It's a good idea to indent these definitions so you can make sure that you keep the number of {s and }s equal. | ||
- | Fifth, JavaScript lets you add //comments// so you can leave notes for yourself as to how things work. They come in two forms: | + | Fifth, JavaScript lets you add //comments// so you can leave notes for yourself as to how things work. Anything inside a comment is ignored when the code is run. Comments come in two forms: |
<code javascript> | <code javascript> |