DEV Community

Janardhan Pulivarthi
Janardhan Pulivarthi

Posted on • Edited on

Run js in Chrome dev console

In the sources tab of the Chrome Dev Console:

  1. On the left hand side, choose to Add folder to workspace
  2. Select the file you would like to run
  3. And In the opened file in the editor, select the code and right click then select Evaluate selected text in console.

Chrome dev console

References:

  1. https://developer.chrome.com/docs/devtools/console/javascript/
  2. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#dynamic_imports

Top comments (0)