If you want to write a lot of JavaScript code, you must use the variable value frequently, and the general method is Alert or set breakpoints in Visual InterDev. However, it will cause interrupt debugging, which is really troublesome.
JavaScript does not have a console in other languages, and cannot display the information we want in other windows, so you need to write one yourself.
I give a simple implementation that can complete the basic needs.
JavaScript has an error and cannot nested directly on this page.
Click to open the test page