description of Functions editor

You use the JavaScript editor to edit the JS functions that you want to use in pages, flows, and application, and to edit the JavaScript file for the artifact. This screenshot shows the JavaScript file of an application artifact open in the editor, and the default functions contained in the file.