Skip to content
← Back to Community
Native Browser Javascript
Profile icon
rrifat

I can't create a native browser javascript repl. When I create a repl by selecting JS it creates repl by node.js where I can't use like a browser console. But I have seen someone can create repl by native browser javascript. So how can i enable that?

Answered by Vandesm14 [earned 5 cycles]
View Answer
Voters
Profile icon
MichaelDuran3
Profile icon
CharlieMesser
Profile icon
mcooropeza
Profile icon
nagamainamdar
Profile icon
ayushnawani
Profile icon
Zimm_
Profile icon
mahanteshbg
Profile icon
rrifat
Comments
hotnewtop
Profile icon
Vandesm14

If you're sure you don't want to use nodejs, you can just fork my reply here: https://repl.it/talk/share/Javascript-Repl-is-HERE/9990

Profile icon
themaka

@Vandesm14
@rrifat
This will work, but we moved to NodeJS because it worked better.
You're welcome to use a fork of an older repl, but be warned there may be issues.

Profile icon
rrifat

@themaka
sure. thank you

Profile icon
nagamainamdar

I am facing the same issue. The editor is not able to identify native JS functions.

Profile icon
Himanshubishtt

Same issue with me. And also we don't get intellisense when use node instead of native browser js.

Profile icon
mahanteshbg

I need to use native browser script, coz some time my script is giving error. eg. let s = x.flat().flat().reduce((s,n)=>s+n);
flat() is not a func error.

Profile icon
amasad

@rrifat
anything in particular you miss about the browser-based repl?

Profile icon
rrifat

@amasad
basically when i'm trying to use console.log() that shows error.

Profile icon
timmy_i_chen

@rrifat
console.log() should still work! Can you send us a link to a repl that is erroring with console.log?

Profile icon
a5rocks

So, you can make a HTML/CSS/JS repl, with browser JS. There used to be a way to get browser JS without HTML and CSS, but I'm pretty sure repl.it removed it.

Profile icon
rrifat

@a5rocks
sure i can. i have already used. but it seems like laggy. Well I'll try again.