Coding Vocab Words
By Alice Keeler
Google Apps Script
JavaScript
Tools
Script editor...
script.google.com
Tools
Script editor...
START
COPY PASTE
COPY PASTE
First Line of code
var doc = DocumentApp.getActiveDocument();
Header
Body
Footer
Text Strings + Variables
‘text’ + ‘ ‘ + variable
Run the Script!
Run the Script
Start Coding!
Write your vocab words 10 times
Challenge
Sample Code to Copy and Paste
function myFunction() {
var doc = DocumentApp.getActiveDocument();
var cat = 'A small furry animal';
var rock = 'the solid mineral material';
var car = 'a road vehicle';
var body = doc.getBody();
var makeVocab = body.appendParagraph('cat = '+cat);
var moreVocab = body.appendParagraph('rock = '+rock);
var thirdVocab = body.appendParagraph('car = '+car);
}