In this example, we will get the squareroot of a value and print the result in the console.
Steps
Drag a button component into the canvas and open the Action tab. Select the press event of the button and drag the Log.write function to the event flow.
Call the function Math.squareRoot inside the Log.write function.