Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a complete definition of the Google App Script Syntax somewhere?

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?

like image 771
Sam Joseph Avatar asked Sep 05 '12 10:09

Sam Joseph


People also ask

What is Google Apps Script written in?

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.

Is Google Apps Script an IDE?

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.

Is Google script easy to learn?

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.


2 Answers

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.

like image 111
megabyte1024 Avatar answered Sep 22 '22 22:09

megabyte1024


Apps Script is precisely JavaScript version 1.6

like image 41
Corey G Avatar answered Sep 20 '22 22:09

Corey G