I'm interested in running the same javascript code both in Apps Script and on a standalone web page. I feel like this should work given that Apps Script is just javascript, but I'm not sure how I would get access to the seemingly Apps Script specific product APIs on my standalone web page. For instance, if my code wants to interact with Google Drive, I would use something like the code snippet at
https://developers.google.com/apps-script/reference/drive in Apps Script. Could I run that same code snippet in javascript on a standalone webpage?