Title: Google apps script tutorials-Variables declaration and Scope-
Blog :http://www.amarindaz.com/google-apps-...
FB page: / amarindaz
Instagram: https://goo.gl/ma9WUh
What is google apps script?
Google Apps Script is a JavaScript cloud scripting language that provides easy ways to automate tasks across Google products and third party services and build web applications.
========================================================
Recommended books:
Learning google apps script- http://amzn.to/2g00LoM
Google apps script for beginners- http://amzn.to/2gVAKvs
========================================================
How to declare google apps script variables?
Google apps script variables are declared with or without keyword var followed by variable name and complete the syntax with semicolon.
It is recommended to declare variables at the beginning of the program. You can also declare multiple variables in a single line separating each variable by comma.
How to assign value to google apps script variables?
Now you are familiar with declaring variables. After variable declaration, literally no value is assigned to those variables. You can assign value to the declared variables using assignment operator ‘=’. You can assign value either at the time of declaration or later.
Google apps script variable scope
Variables can be declared as global or local. Global variables can be accessed by any functions in the script. Local variables can be accessed only by the function where it is declared.
💼 To Hire Me 👉 https://fwd.cx/WLGgpTiZW5HK
Checkout my app 👉 https://www.myfreshtools.com