Ask coding questions

← Back to all posts
Native Browser Javascript Not showing
RichSlaton (0)

Hello everybody,
I am new here and was setting up my environment for an online class. I am using JavaScript. I did the simple exercise and tried to run my code and I am getting an error.

'run' isn't configured in the .replit file
try adding 'run = "echo hello word"' to .replit

For some reason, I cannot see how to activate my Native Browser for JavaScript even though I picked it when I started on replit.

Thanks for any insights.

Coder100 (17376)

Browser js is not supported anymore on replit, and it was also pretty bad.

Here is your configuration file to run nodejs, which accomplishes almost the same thing, but you don't have access to the dom browser.

So, change your .replit file:

run = "node ."