About Inspecting Variables

You can stop execution of python code and inspect local and global variables with

breakpoint()
# or `import pdb; pdb.set_trace()` before Python 3.7

To achieve the same in JavaScript, put this in your code:

debugger;

Tips and Tricks Programming Development Python 3 JavaScript