MCPcopy Index your code
hub / github.com/learning-zone/nodejs-basics / ask

Function ask

nodejs-basics/standard-input-output.js:13–16  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

11];
12
13function ask(i) {
14 process.stdout.write(`\n ${questions[i]}`);
15 process.stdout.write(' > ');
16}
17
18process.stdin.on('data', function(data) {
19 answers.push(data.toString().trim());

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected