---
title: "Structure and simplify your Google Apps Script (with) V8"
author: "Sourabh Choraria"
date: 2020-05-21T15:55:09+00:00
canonical_url: https://pulse.appsscript.info/p/2020/05/structure-and-simplify-your-google-apps-script-with-v8/
markdown_url: https://pulse.appsscript.info/p/2020/05/structure-and-simplify-your-google-apps-script-with-v8.md
categories:
  - "Comment"
  - "Snippet"
tags:
  - "@duizendstra"
  - "Medium"
featured_image: https://pulse.appsscript.info/files/2020/05/1gVVa7SA2zFlwLe5H7oaARA.png
description: "Apps Script now supports the V8 runtime. Time for an update to the story “Structure and simplify your Google Apps Script Apps script”. The V8 runtime brings modern ECMAScript syntax to Apps Script. So we..."
---

# Structure and simplify your Google Apps Script (with) V8

![Structure and simplify your Google Apps Script (with) V8](https://pulse.appsscript.info/files/2020/05/1gVVa7SA2zFlwLe5H7oaARA.png)

[![](https://pulse.appsscript.info/files/2020/05/1gVVa7SA2zFlwLe5H7oaARA.png)](https://medium.com/@duizendstra/structure-and-simplify-your-google-apps-script-with-v8-37e29d3e1edf)

> Apps Script now supports the [V8 runtime](https://developers.google.com/apps-script/guides/v8-runtime). Time for an update to the story “[Structure and simplify your Google Apps Script Apps script](https://medium.com/javascript-in-plain-english/create-javascript-objects-in-google-apps-script-91472378ab55)”. The V8 runtime brings modern [ECMAScript](https://en.wikipedia.org/wiki/ECMAScript) syntax to Apps Script. So we can now use arrow functions and destructuring assignments. No more [hoisting](https://medium.com/javascript-in-plain-english/https-medium-com-javascript-in-plain-english-what-is-hoisting-in-javascript-a63c1b2267a1) with let and const and my personal favorite, template literals.

In this story Jasper Duizendstra shows the added value of the changes made in the constructor pattern using the factory functions. It also shows how to implement chaining and a builder pattern in Apps Script.

Source: *[Structure and simplify your Google Apps Script (with) V8*](https://medium.com/@duizendstra/structure-and-simplify-your-google-apps-script-with-v8-37e29d3e1edf)

---

*Published by [Sourabh Choraria](https://pulse.appsscript.info/p/author/scriptgs/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2020/05/structure-and-simplify-your-google-apps-script-with-v8/](https://pulse.appsscript.info/p/2020/05/structure-and-simplify-your-google-apps-script-with-v8/)*
