Traditionally, to test a function you have to:
Code a driver function
Set alerts to see the return value, and
Remove all this extra code when the testing is done.
The following example illustrates how to call functions from within the Editor:
In the Project pane, open the Solutions / Cookies solution and double-click Cookies.htm and Cookies.js to open them in the Editor. ( Cookies are stored in a text file and used by your browser. They consist of name=value pairs, with some optional information - expiration time, path, domain, and the "secure" keyword. Cookies.js has functions that allow you to store and retrieve cookies. )
Click on the Cookies.htm tab to make it the active window, and select View / Internal Page Viewer from the menu to view the page
Click on the Cookies.js pane to make it the active window, then click on the SetCookie() function to select it, and right-click to display the pop-up menu
Type the name and the value parameters like in the example above. You can leave the remaining parameters (expires, path, domain, and secure) empty. Click OK.
The function was invoked, and the cookie was stored. The function has no return value, which shows in the status line.