Skip to content
Sign upLog in
← Back to Community

JavaScript

Profile icon
twizzton

I can't for some strange reason open a new JavaScript, it just turns into a nodejs? any reason as to why?

Voters
Profile icon
Jose-GustavoGu3
Profile icon
Shaghayegh_
Profile icon
zabimasomi
Profile icon
nourrobbena53
Profile icon
ChaimaeKhaiti
Profile icon
ARTILLIS18
Profile icon
RutujaShinde
Profile icon
IshanPatel8
Profile icon
twizzton
Comments
hotnewtop
Profile icon
ChristinaSchw

Constants are a banksnear-me.com/ special type of variable. Once declared, the value cannot be changed (unless you change the value when initializing it). In JS you use the const keyword: const pi = 3.14159

Profile icon
Zakiroboy

I really want to do a
JavaScript repl!!!

Profile icon
twizzton

But prompt does'nt work in node.js

Profile icon
Vandesm14

@twizzton
you can use readline and readline-sync from npm. Or just use an HTML repl.

Profile icon
JSer

Repl.it has cancelled the native browser JavaScript repl, since you can use browser JS in a HTML/CSS/JS repl. Now a JavaScript repl is simply a node.js repl.