Use

JavaScript actions are typically used for simple JavaScript logics that have no major connection to other functionalities in the project. The use of a Code-Behind file is recommended in cases where several JavaScript actions are configured, since the code is available centrally in one place, i.e. not distributed across several places.

Typical use cases

Special statements

debugger;

This statement sets a breakpoint at the current location and stops the program when the development tools of the browser are open.