What is the use of Math Object in JavaScript?

  • : 367
  • : 11
    Previous Next

    The math object provides you properties and methods for mathematical constants and functions.
    var x = Math.PI; // Returns PI
    var y = Math.sqrt(16); // Returns the square root of 16
    var z = Math.sin(90); Returns the sine of 90

    you can suggest other answer in comment box

  • Exam: Java Script Interview QUESTIONS

    Recommended Learning for you

    Subscribe here for free mock test on IAS PCS SSC and other competitive exam. Signup here to get SSC CGL Solution and main exam study material