Synopsis
Learn how to make JavaScript functions return values. This tutorial demonstrates creating functions that hold calculations, then uses those functions in a larger function to perform and display results. The example uses text boxes for user input and shows how to use returned values.