I can't find a complete syntax spec on the developer pages. I'm really wondering if there's an extended for loop ...
https://developers.google.com/apps-script/
I see the Default services, but that isn't defining what control flow syntax we can use. Is it precisely some version of JavaScript?
Google Apps Script is a rapid application development platform that makes it fast and easy to create business applications that integrate with Google Workspace. You write code in modern JavaScript and have access to built-in libraries for favorite Google Workspace applications like Gmail, Calendar, Drive, and more.
We've redesigned the Integrated Development Environment (IDE) for Google Apps Script. The new IDE offers a more modern and simplified development experience which makes it quicker and easier to build solutions that make Google Workspace apps more useful for your organization.
One of the best reasons to learn Google Apps Script as your first programming language is that it's very, very easy to get started.
The GAS is not a precise version of JavaScript. It supports many features of JavaScript 1.8.5 like Object.keys
, Object.isExtensible
, etc. but on the other hand it does not support the keywords yield
and let
introduced in JavaScript 1.7. Another features which the GAS supports are the native JSON
class and String.trim
function introduced in JavaScript 1.8.1. Also the GAS supports the E4X extension.
The GAS documentation is not complete now and many features are discoverable experimentally.
Apps Script is precisely JavaScript version 1.6
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With