variables en JS
NodeJS
let numero1 = 8;
let numero2 = 3;
let resultadosuma = numero1 + numero2;
let resultadoresta = numero1 - numero2;
let resultadomultiplicacion = numero1 * numero2;
let resultadodivision = numero1 / numero2;
let resultadomodulo = numero1 % numero2;
let resultadoexponente = numero1 ** numero2;
console.log("Numero 1:" , numero1);
console.log("Numero 2:" , numero2);
console.log("Resultado suma:" , resultadosuma);
console.log("Resultado resta:" , resultadoresta);
console.log("Resultado multiplicacion:" , resultadomultiplicacion);
console.log("Resultado division:" , resultadodivision);
console.log("Resultado modulo:" , resultadomodulo);
console.log("Resultado exponente:" , resultadoexponente);
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.