Trying to figure out Google Apps Script for making Google docs addons. I have:
Code.gs
function helloWorld() {
return "Hello World";
}
under code.gs which I call in:
Sidebar.html
console.log("This should say Hello World: " + google.script.run.helloWorld())
It returns:
This should say Hello World: undefined
What is the obvious thing I am missing?