Javascript: Load script when url is localhost

I need load file when url is localhost. I expect: if (location.hostname === “localhost” || location.hostname === “127.0.0.1”){

Contact Details

Web: tutorialguruji.com
For Advertisement - Contact Us Today.

What You Want To Learn?