Updated Introduction to Editor Scripting.md (markdown)
commited
commit
8627e48f4e12d0823d139eb84dd4adc9bc80bb0f
... | ... | @@ -27,7 +27,7 @@ findBlock("My Block"); |
27 | 27 | ``` |
28 | 28 | You can once again see a function, but this one is called `findBlock`. In contrast to the previous function, this one doesn't take numbers as input. Instead it takes a block of text, called a string, which is encapsulated by a pair of quotes. We can now run this code, but it will do nothing at first, because we haven't used the output of the function anywhere. We can change this by storing the output in a variable! |
29 | 29 | |
30 | ## Variables |
|
30 | ## [๐](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types#declarations)Variables |
|
31 | 31 | ```js |
32 | 32 | // Find block by name and store it in a variable |
33 | 33 | let myBlock = findBlock("My Block"); |