Executing the JavaScript in Chrome Developer tool

You can also use Chrome developer tool (Console tab) to execute the JavaScript. Below image shows how to execute JavaScript in Chrome.

javascript-console-in-chrome

javascript-console-in-chrome

You may also like...