Logging Without console.log
Chrome provides you an option to add logging statements without the actual console.log statement in your code.
Try
- Open Sources tab with file
1-logging.js - Right-click on the line number to add a logpoint inside
randomGenerator()function - Add some variable inside the
add logpointwindow to see the values of those variables being logged. - Click on the button below to trigger the function call