JavaScript Tutorial: Math Object In JavaScript | Net Improvement Tutorials #61



► Supply Code & Notes: https://codewithharry.com/movies/web-development-in-hindi-61
►This video is part of this Full Net Improvement in Hindi Course Playlist: https://www.youtube.com/playlist?checklist=PLu0W_9lII9agiCUZYRsvtGTXdxkzPyItg
►Click on right here to subscribe – https://www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww
►Checkout my English channel right here: https://www.youtube.com/ProgrammingWithHarry

Finest Hindi Movies For Studying Programming:

►Study Python In One Video – https://www.youtube.com/watch?v=ihk_Xglr164

►Python Full Course In Hindi – https://www.youtube.com/playlist?checklist=PLu0W_9lII9agICnT8t4iYVSZ3eykIAOME

►C Language Full Course In Hindi –
https://www.youtube.com/playlist?checklist=PLu0W_9lII9aiXlHcLx-mDH1Qul38wD3aR&disable_polymer=true

►JavaScript Full Course In Hindi –
https://www.youtube.com/playlist?checklist=PLu0W_9lII9ajyk081To1Cbt2eI5913SsL

►Study JavaScript in One Video – https://www.youtube.com/watch?v=onbBV0uFVpo

►Study PHP In One Video – https://www.youtube.com/watch?v=xW7ro3lwaCI

►Django Full Course In Hindi –
https://www.youtube.com/playlist?checklist=PLu0W_9lII9ah7DDtYtflgwMwpT3xmjXY9

►Machine Studying Utilizing Python – https://www.youtube.com/playlist?checklist=PLu0W_9lII9ai6fAMHp-acBmJONT7Y4BSG

►Creating & Internet hosting A Web site (Tech Weblog) Utilizing Python – https://www.youtube.com/playlist?checklist=PLu0W_9lII9agAiWp6Y41ueUKx1VcTRxmf

►Superior Python Tutorials – https://www.youtube.com/playlist?checklist=PLu0W_9lII9aiJWQ7VhY712fuimEpQZYp4

►Object Oriented Programming In Python – https://www.youtube.com/playlist?checklist=PLu0W_9lII9ahfRrhFcoB-4lpp9YaBmdCP

►Python Knowledge Science and Huge Knowledge Tutorials – https://www.youtube.com/playlist?checklist=PLu0W_9lII9agK8pojo23OHiNz3Jm6VQCH

Comply with Me On Social Media
►Web site (created utilizing Flask) – http://www.codewithharry.com
►Fb – https://www.fb.com/CodeWithHarry
►Instagram – https://www.instagram.com/codewithharry/
►Private Fb A/c – https://www.fb.com/geekyharis
Twitter – https://twitter.com/Haris_Is_Here

source

41 thoughts on “JavaScript Tutorial: Math Object In JavaScript | Net Improvement Tutorials #61”

  1. This is what I learned today –
    <!DOCTYPE html>

    <html lang="en">

    <head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Math Object in javascript</title>

    </head>

    <body>

    <div class="container">

    <h1>This is math object tutorial</h1>

    </div>

    </body>

    <script src="JavaScript15.js"></script>

    </html>

    JavaScript code =

    // Printing the Math object

    let m = Math;

    console.log(m);

    // Printing the constants from Math Object

    console.log("The Value of Math.E is ", Math.E);

    console.log("The Value of Math.PI is ", Math.PI);

    console.log("The Value of Math.LN2 is ", Math.LN2);

    console.log("The Value of SQRT1_2 is ",Math.SQRT1_2);

    console.log("The Value of SQRT2 is ",Math.SQRT2);

    console.log("The Value of Math.LOG10E is ", Math.LOG10E);

    // Printing the funcitons form math object

    let a = 34.64534;

    let b = 89;

    console.log("The value of a and b is ", a, b);

    console.log("The value of a and b rounded is ", Math.round(a), Math.round(b));

    console.log("3 raised to the power of 2 is ", Math.pow(3, 2));

    console.log("3 raised to the power of 2 is ", Math.pow(2, 12));

    console.log("Square root of 36 is ", Math.sqrt(36));

    console.log("Square root of 64 is ", Math.sqrt(64));

    console.log("Square root of 50 is ", Math.sqrt(50));

    // Ceil and floor

    console.log("5.8 rounded up to nearest integer is ", Math.ceil(5.8));

    console.log("5.8 rounded down to nearest integer is ", Math.floor(5.8));

    // Abs function

    console.log("Absolute value of 5.6 is ", Math.abs(5.66));

    console.log("Absolute value of 5.6 is ", Math.abs(-5.66));

    // Trigonometric Function

    console.log("The Value of sin(pi) is ", Math.sin(Math.PI));

    console.log("The Value of sin(pi/2) is ", Math.sin(Math.PI/2));

    console.log("The Value of cos(pi) is ", Math.cos(Math.PI));

    console.log("The Value of tan(pi) is ", Math.tan(Math.PI));

    console.log("The Value of cot(pi) is ", 1 / Math.tan(Math.PI)); // Calculate cot as 1 / tan

    console.log("The Value of sec(pi) is ", 1 / Math.cos(Math.PI)); // Calculate sec as 1 / cos

    console.log("The Value of cosec(pi) is ", 1 / Math.sin(Math.PI)); // Calculate cosec as 1 / sin

    // Min and Max Functions

    console.log("Mininmum value of 4, 5, 6 is ", Math.min(4,5,6));

    console.log("Mininmum value of 14, 5, 16 is ", Math.min(14,5,16));

    console.log("Maximum value of 14, 5, 16 is ", Math.max(14,5,16));

    console.log("Mininmum value of 14, 5, 16 is ", Math.max(14,5,16));

    // log functions : returns natural logarithm of number

    console.log("Logarithm of 2 is ", Math.log(34));

    // Generating random Number

    let r = Math.random();

    console.log("Random number is ", r);

    // Random number b/w (a,b) = a + (b-a)*Math.random()

    let Num1 = 1;

    let Num2 = 100;

    // let RandomNumbers = Num1 + (Num2-Num1)*Math.random();

    // console.log("Random numbers between 1 and 100 is ", RandomNumbers);

    // OutPut in round format

    let RandomNumbers = Num1 + Math.round( (Num2-Num1)*Math.random());

    console.log("Random numbers between 1 and 100 is ", RandomNumbers);

    Reply
  2. // Thank You Harry Bhai
    // By using this method we can be generate OPD

    let x = 1000;

    let y = 10000;

    let r1000_10000 = x + (y-x)*Math.random();

    console.log("The Random value is ", r);

    console.log("The Random value is ", Math.round(r1000_10000));

    Reply
  3. Harry bhai play list access kar li hai Harry bhai play list access kar li haiHarry bhai play list access kar li haiHarry bhai play list access kar li haiHarry bhai play list access kar li haiHarry bhai play list access kar li hai Harry bhai play list access kar li haiHarry bhai play list access kar li haiHarry bhai play list access kar li haiHarry bhai play list access kar li haiHarry bhai play list access kar li hai Harry bhai play list access kar li haiHarry bhai play list access kar li haiHarry bhai play list access kar li haiHarry bhai play list access kar li haiHarry bhai play list access kar li hai Harry bhai play list access kar li haiHarry bhai play list access kar li haiHarry bhai play list access kar li haiHarry bhai play list access kar li haiHarry bhai play list access kar li hai Harry bhai play list access kar li haiHarry bhai play list access kar li haiHarry bhai play list access kar li haiHarry bhai play list access kar li hai

    Reply

Leave a Comment