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);
On this page of the site you can watch the video online JavaScript Math 📐 with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 10 March 2021, share the link with friends and acquaintances, this video has already been watched 19,781 times on youtube and it was liked by 543 viewers. Enjoy your viewing!