Nano20211 Asked: 2021-11-10 10:43:48 +0800 CST 2021-11-10 10:43:48 +0800 CST 2021-11-10 10:43:48 +0800 CST How to add and subtract within console.log [closed] 772 I can't find info on how to add or subtract inside console.logsince the +and the -don't take them as such. javascript 1 Answers Voted Best Answer ASASCED 2021-11-10T10:52:09+08:002021-11-10T10:52:09+08:00 let a = 20; let b = 14; // Suma console.log(a + b); // Resta console.log(a - b); // Con string al principio console.log("Resultado: " + (a + b));
1 Answers