R
R
Roma Biatov2020-12-09 16:41:18
Node.js
Roma Biatov, 2020-12-09 16:41:18

How to get the same result without including the readline library?

const readline = require("readline-sync");

function sum() {
    let a = +readline.question("Введите первое число: ");
    let b = +readline.question("Введите второе число: ");
    return(a + b);
}

console.log(sum());


Here is the code, I want the same thing to be displayed, only without connecting the library, if it’s not difficult, tell me what needs to be done for this

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question