1 of 31

Coding Vocab Words

By Alice Keeler

2 of 31

Google Apps Script

3 of 31

JavaScript

4 of 31

5 of 31

6 of 31

Tools

Script editor...

7 of 31

script.google.com

8 of 31

Tools

Script editor...

START

9 of 31

COPY PASTE

COPY PASTE

10 of 31

11 of 31

First Line of code

var doc = DocumentApp.getActiveDocument();

12 of 31

13 of 31

14 of 31

Header

Body

Footer

15 of 31

16 of 31

17 of 31

18 of 31

19 of 31

Text Strings + Variables

‘text’ + ‘ ‘ + variable

20 of 31

21 of 31

Run the Script!

Run the Script

22 of 31

23 of 31

24 of 31

25 of 31

Start Coding!

26 of 31

27 of 31

28 of 31

29 of 31

Write your vocab words 10 times

Challenge

30 of 31

31 of 31

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);

}