Node - javascript

Question:
Hello - using Node for Javascript - prompt doesnt work anymore.
Any help or correction?

Repl link:
https://replit.com/@ConstantinSumme/ComposedHeartyParallelalgorithm#index.js

let inp = prompt('Name?');
console.log(inp);

Hi @ConstantinSumme , welcome back!
This was an update, so you’ll need to use the prompt-sync library.

const prompt = require('prompt-sync')()
prompt('Enter your name: ')

Hope this helps!

1 Like