Answer the question
In order to leave comments, you need to log in
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());
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question