Ask coding questions

← Back to all posts
Native Browser Javascript
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
mcooropeza
nagamainamdar
ayushnawani
Zimm_
mahanteshbg
rrifat
Comments
hotnewtop
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

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.

rrifat

@themaka sure. thank you

Himanshubishtt

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

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.

amasad

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

rrifat

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

timmy_i_chen

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

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.

rrifat

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

nagamainamdar

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