Horje
4.8. Input with readline-sync¶ Code Example
4.8. Input with readline-sync¶
/*Gathering input from the user requires the following setup:*/

const input = require('readline-sync');

let info = input.question("Question text... ");

// example // 
const input = require('readline-sync');

let name = input.question("Enter your name: ");




Javascript

Related
js Write a function that will return a random integer between 10 and 100 Code Example js Write a function that will return a random integer between 10 and 100 Code Example
js hangman with repeated characters Code Example js hangman with repeated characters Code Example
FTP Code Example FTP Code Example
check if a string matches a regex javascript Code Example check if a string matches a regex javascript Code Example
angular chart js Doughnut colors Code Example angular chart js Doughnut colors Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10