The browser’s console object can potentially help further in understanding and/or debugging your JavaScript codes.
Below is a reference on using the console object in Chrome (note that each browser varies).
Note: the console object and its particular function may or may not exist on a particular browser so it will be better to remove or to comment this out after using. Use for investigation only.