Updated Introduction to Editor Scripting.md (markdown)
commited
commit
0b7cdd7f6b0b76ce858b612549798478413165b7
... | ... | @@ -5,14 +5,11 @@ Editor Scripting is a feature that can be accessed in command line by entering ' |
5 | 5 | # Getting Started |
6 | 6 | Editor script uses JS (JavaScript), also not to be confused with Java which is a object oriented programming, JS is a lightweight programming language, this should mean that it's pretty easy to learn. Anyways, were here to learn about the basic concepts about JS and compare it to fancade scripting for better understanding. lets start with variables. |
7 | 7 | |
8 | Unlike most programming languages JS uses a versatile variable declaration this means you can set a variable to any type value casually. |
|
9 | ||
10 | ### Type Values |
|
11 | |Fancade| |
|
12 | ||
13 | |JavaScript| |
|
14 | |----------| |
|
8 | Unlike most programming languages JS uses a versatile variable declaration this means you can set a variable to any type value casually. JS uses 3 variable declaration key: |
|
15 | 9 | |
10 | • 'var' - commonly used variable, is global and can be called anywhere after declaration |
|
11 | • 'const' - is a variable that represents a constant value, usually declared before everything |
|
12 | • 'let' - is a variable that represents a local variable, its value only persist inside the codeblock '{}' where it is located |
|
16 | 13 | |
17 | 14 | |
18 | 15 |