description of Functions editor

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