r/GoogleAppsScript • u/runfastination • Oct 20 '22
Question How different is Apps Script vs. JavaScript?
Curious if a JavaScript tutor could navigate this with me?
4
u/Marijn_fly Oct 20 '22
Google Apps Script is serverside Javascript. So it's essentially the same but you use it in a different way because serverside tasks are generally different in nature than stuff you do on the front side. Typical serverside taks are retrieving data from some source. Front end tasks include designing a user interface for example. But it's still the same language at both ends.
3
u/HannahOfTheMountains Oct 20 '22
Structure and syntax are basically identical, there is some difference in terms of available libraries. But, as a JavaScript programmer for many years, it took me all of 10 minutes to get going in Apps Script, very little is surprising.
8
u/LateDay Oct 21 '22
Apps Script is Javascript.
Differences are less to do with the language but where the code is run. since App Script is not run by a browser, you cannot use document and HTML methods or classes. Console.log also does not work (since there is no console) but Logger.log does the equivalent.