There are two primary ways to develop and test Cloud Functions: locally using the Cloud Functions simulator and directly in the cloud via the Cloud Console.
Developing Cloud Functions
Using the Cloud Console
The simplest way to get started is by using the Google Cloud Console. Firstly, navigate to Navigation menu | Cloud Functions. If you haven't already, you'll need to enable the Cloud Functions API, which can be done from this page by clicking Enable API. Once enabled, click Create Function to get started.
The function creation page allows developers to specify a function name, memory allocation, the function trigger type, and code to execute. With the Source code option set to Inline editor, a simple example function...