javascript math functions objects contstants tutorial example explained
#javascript #math #functions
// ******** index.js ********
// Math = An object that provides basic
// mathematics functionality and constants.
//var myNum;
//myNum = Math.round(3.5);
//myNum = Math.floor(3.9);
//myNum = Math.ceil(3.1);
//myNum = Math.pow(3, 3);
//myNum = Math.sqrt(64);
//myNum = Math.abs(-1);
//myNum = Math.min(1, 5, 2, 4, 3);
//myNum = Math.max(1, 5, 2, 4, 3);
//myNum = Math.PI;
//myNum = Math.E;
//console.log(myNum);
// solve for hypotenuse of a right triangle
var a = window.prompt("Enter side A");
var b = window.prompt("Enter side B");
var c;
c = Math.sqrt(Math.pow(a,2) + Math.pow(b,2));
console.log("Side c =",c);
En esta página del sitio puede ver el video en línea JavaScript Math 📐 de Duración hora minuto segunda en buena calidad , que subió el usuario Bro Code 10 marzo 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 19,781 veces y le gustó 543 a los espectadores. Disfruta viendo!