function calcular(a,b){
let resultado=a*2;
if(resultado>10){
console.log("Resultado maior que 10");
}
return resultado;
}
let VALOR=6;
let x=calcular(VALOR);
console.log(x);
To embed this project on your website, copy the following code and paste it into your website's HTML: