Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7878353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:38:06+00:00 2026-06-03T03:38:06+00:00

The Math object does not have a prototype property, but does have a constructor

  • 0

The Math object does not have a prototype property, but does have a constructor property. Is there any case in which redefining the constructor would be useful?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:38:07+00:00Added an answer on June 3, 2026 at 3:38 am

    MDN says:

    Unlike the other global objects, Math is not a constructor. All properties and methods of Math are static.

    In other languages, when a class is static, you can directly use its properties and methods without creating an instance of that class ( an object ). If Math constructor is used, there is no native type to support the object, unlike with the primitive types: Number, String, Boolean. They can be converted to objects with their wrappers.

    Furthermore it is a bad practice to extend a root object. If in the future new functionality is implemented in the environment and the code don’t have fail-safety check for this, it will override the native one.

    My personal opinion is that you do not constructor, nor prototype – you can define your own mathematical functions. The Math object is here just to present a standard functions, and give programmers the leverage not to define Pi or E, for example. And probably user defined mathematical function will be several times slower than the built-in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

math.h is not really a documentation. Is there something else that will describe these
The preloader does not show up after 3% like it should have, it shows
I wrote an abstraction class for a math object, and defined all of the
Math.sqrt(); seems to work fine with any number less than 310 characters long. However,
I am trying to measure an object immediately after changing the DataContext, but the
Possible Duplicate: Why does C# execute Math.Sqrt() more slowly than VB.NET? I'm running into
I have this countdown script wrapped as an object located in a separate file
I am new to taking an object oriented approach with php...actually I have a
I have a very basic problem with an object. I create the object in
I have a C++ class Matrix22 with an array and a default constructor: class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.