Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section is dedicated to custom JavaScript functions that you can use. Feel free to use these, or share your own ideas! Note that all of these functions are written for the default deployment of Volt, which operates within a sand-boxed environment, therefore some of the syntax looks different then if you were just writing natural, unhindered JavaScript.

If you are writing your own javaScript or looking to investigate/debug the functions provided you can add "debugger;" to any line of the code to create a break-point.  If you view the page with the browser developer tools enabled then the code will stop executing at that point and you can then step through the code one line at a time.

...

As you can see above, from here I can step one line at a time and I can step into or out of functions.  This is a great tool for helping you figure out what might be broken in a function that you build.  You may also add expressions or variables to the "Watch Expressions" section to show you the value of code statements as you progress through your function(s).

Note

Be sure to remove any break points ("debugger;") in your code before publishing your application for final consumption.