{"id":3087,"date":"2025-10-17T17:54:38","date_gmt":"2025-10-17T16:54:38","guid":{"rendered":"https:\/\/codeflarelimited.com\/blog\/?p=3087"},"modified":"2025-10-17T17:54:39","modified_gmt":"2025-10-17T16:54:39","slug":"complete-javascript-math-reference","status":"publish","type":"post","link":"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/","title":{"rendered":"Complete JavaScript Math Reference"},"content":{"rendered":"\n<p>The\u00a0<code>Math<\/code>\u00a0object in JavaScript is a\u00a0<strong>built-in object<\/strong>\u00a0that provides mathematical constants and functions.<br>It\u2019s\u00a0<strong>not a constructor<\/strong>, so you don\u2019t use\u00a0<code>new Math()<\/code>.<br>You access methods like this:<\/p>\n\n\n\n<p><a href=\"https:\/\/codeflarelimited.com\/apply\">Learn how to build softwares<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">Math.methodName(arguments)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1. Math Constants<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">console.log(Math.E);        \/\/ 2.718281828459045 (Euler's number)\nconsole.log(Math.PI);       \/\/ 3.141592653589793 (\u03c0)\nconsole.log(Math.SQRT2);    \/\/ 1.4142135623730951 (\u221a2)\nconsole.log(Math.SQRT1_2);  \/\/ 0.7071067811865476 (\u221a1\/2)\nconsole.log(Math.LN2);      \/\/ 0.6931471805599453 (ln 2)\nconsole.log(Math.LN10);     \/\/ 2.302585092994046 (ln 10)\nconsole.log(Math.LOG2E);    \/\/ 1.4426950408889634 (log2(e))\nconsole.log(Math.LOG10E);   \/\/ 0.4342944819032518 (log10(e))<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. Basic Math Methods<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">console.log(Math.abs(-7));      \/\/ 7 \u2192 absolute value\nconsole.log(Math.sign(-10));    \/\/ -1 \u2192 negative\nconsole.log(Math.sign(0));      \/\/ 0\nconsole.log(Math.sign(8));      \/\/ 1 \u2192 positive\nconsole.log(Math.trunc(5.89));  \/\/ 5 \u2192 removes decimals\nconsole.log(Math.round(4.6));   \/\/ 5 \u2192 rounds to nearest integer\nconsole.log(Math.ceil(4.1));    \/\/ 5 \u2192 rounds up\nconsole.log(Math.floor(4.9));   \/\/ 4 \u2192 rounds down<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. Power &amp; Roots<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">console.log(Math.pow(2, 3));    \/\/ 8 \u2192 2\u00b3\nconsole.log(Math.sqrt(16));     \/\/ 4 \u2192 \u221a16\nconsole.log(Math.cbrt(27));     \/\/ 3 \u2192 \u221b27\nconsole.log(Math.hypot(3, 4));  \/\/ 5 \u2192 \u221a(3\u00b2 + 4\u00b2)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>4. Exponential &amp; Logarithmic<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">console.log(Math.exp(1));       \/\/ 2.718281828459045 \u2192 e\u00b9\nconsole.log(Math.expm1(1));     \/\/ 1.718281828459045 \u2192 e\u00b9 - 1\nconsole.log(Math.log(Math.E));  \/\/ 1 \u2192 natural log (base e)\nconsole.log(Math.log10(100));   \/\/ 2 \u2192 base 10 log\nconsole.log(Math.log2(8));      \/\/ 3 \u2192 base 2 log\nconsole.log(Math.log1p(0.5));   \/\/ 0.4054651081081644 \u2192 log(1 + x)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>5. Trigonometric Functions<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">console.log(Math.sin(Math.PI \/ 2));  \/\/ 1 \u2192 sin(90\u00b0)\nconsole.log(Math.cos(0));            \/\/ 1 \u2192 cos(0\u00b0)\nconsole.log(Math.tan(Math.PI \/ 4));  \/\/ 1 \u2192 tan(45\u00b0)\nconsole.log(Math.asin(1));           \/\/ 1.5707963267948966 \u2192 arcsin(1) = \u03c0\/2\nconsole.log(Math.acos(0));           \/\/ 1.5707963267948966 \u2192 arccos(0) = \u03c0\/2\nconsole.log(Math.atan(1));           \/\/ 0.7853981633974483 \u2192 arctan(1) = \u03c0\/4\nconsole.log(Math.atan2(1, 1));       \/\/ 0.7853981633974483 \u2192 atan2(y, x)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>6. Hyperbolic Functions<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">console.log(Math.sinh(0));    \/\/ 0 \u2192 hyperbolic sine\nconsole.log(Math.cosh(0));    \/\/ 1 \u2192 hyperbolic cosine\nconsole.log(Math.tanh(0));    \/\/ 0 \u2192 hyperbolic tangent\nconsole.log(Math.asinh(1));   \/\/ 0.881373587019543 \u2192 inverse hyperbolic sine\nconsole.log(Math.acosh(1));   \/\/ 0 \u2192 inverse hyperbolic cosine\nconsole.log(Math.atanh(0.5)); \/\/ 0.5493061443340549 \u2192 inverse hyperbolic tangent<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>7. Random Numbers<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">console.log(Math.random()); \n\/\/ Random number between 0 (inclusive) and 1 (exclusive)\n\nconsole.log(Math.floor(Math.random() * 10)); \n\/\/ Random integer between 0 and 9\n\nconsole.log(Math.floor(Math.random() * (20 - 10 + 1)) + 10);\n\/\/ Random integer between 10 and 20<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>8. Min, Max, and Clamping<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">console.log(Math.max(1, 5, 10, 3));  \/\/ 10 \u2192 largest number\nconsole.log(Math.min(1, 5, 10, 3));  \/\/ 1 \u2192 smallest number\n\n\/\/ Clamping a number between 0 and 100:\nlet value = 120;\nlet clamped = Math.min(Math.max(value, 0), 100);\nconsole.log(clamped); \/\/ 100<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>9. Miscellaneous \/ Utility Functions<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">console.log(Math.imul(3, 4));        \/\/ 12 \u2192 integer multiplication (32-bit)\nconsole.log(Math.fround(1.337));     \/\/ 1.3370000123977661 \u2192 32-bit float\nconsole.log(Math.clz32(1));          \/\/ 31 \u2192 count leading zeros in 32-bit binary\nconsole.log(Math.atan2(10, 10));     \/\/ 0.7853981633974483 \u2192 angle in radians<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>10. Example: Using Math in Real Use Cases<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Area of a circle<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">let radius = 5;\nlet area = Math.PI * Math.pow(radius, 2);\nconsole.log(area); \/\/ 78.53981633974483<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Random password length generator (8\u201316 chars)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">let length = Math.floor(Math.random() * (16 - 8 + 1)) + 8;\nconsole.log(length);<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Distance between two points (x\u2081, y\u2081) and (x\u2082, y\u2082)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">let x1 = 2, y1 = 3, x2 = 7, y2 = 8;\nlet distance = Math.hypot(x2 - x1, y2 - y1);\nconsole.log(distance); \/\/ 7.0710678118654755<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Convert degrees to radians<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">let degrees = 180;\nlet radians = degrees * (Math.PI \/ 180);\nconsole.log(radians); \/\/ 3.141592653589793<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Summary\u00a0<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Category<\/th><th>Common Methods<\/th><\/tr><\/thead><tbody><tr><td>Constants<\/td><td>E, PI, SQRT2, SQRT1_2, LN2, LN10, LOG2E, LOG10E<\/td><\/tr><tr><td>Rounding<\/td><td>abs, sign, trunc, round, ceil, floor<\/td><\/tr><tr><td>Power\/Roots<\/td><td>pow, sqrt, cbrt, hypot<\/td><\/tr><tr><td>Exponential\/Logs<\/td><td>exp, expm1, log, log10, log2, log1p<\/td><\/tr><tr><td>Trigonometry<\/td><td>sin, cos, tan, asin, acos, atan, atan2<\/td><\/tr><tr><td>Hyperbolic<\/td><td>sinh, cosh, tanh, asinh, acosh, atanh<\/td><\/tr><tr><td>Random\/Utility<\/td><td>random, min, max, fround, imul, clz32<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The\u00a0Math\u00a0object in JavaScript is a\u00a0built-in object\u00a0that provides mathematical constants and functions.It\u2019s\u00a0not a constructor, so you don\u2019t use\u00a0new Math().You<\/p>\n","protected":false},"author":1,"featured_media":3088,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[98],"tags":[],"class_list":["post-3087","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-softare-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Complete JavaScript Math Reference<\/title>\n<meta name=\"description\" content=\"The\u00a0Math\u00a0object in JavaScript is a\u00a0built-in object\u00a0that provides mathematical constants and functions.It\u2019s\u00a0not a constructor\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Complete JavaScript Math Reference\" \/>\n<meta property=\"og:description\" content=\"The\u00a0Math\u00a0object in JavaScript is a\u00a0built-in object\u00a0that provides mathematical constants and functions.It\u2019s\u00a0not a constructor\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/codeflretech\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-17T16:54:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-17T16:54:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/10\/2-5.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"codeflare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codeflaretech\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-javascript-math-reference\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-javascript-math-reference\\\/\"},\"author\":{\"name\":\"codeflare\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\"},\"headline\":\"Complete JavaScript Math Reference\",\"datePublished\":\"2025-10-17T16:54:38+00:00\",\"dateModified\":\"2025-10-17T16:54:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-javascript-math-reference\\\/\"},\"wordCount\":151,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-javascript-math-reference\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/2-5.png\",\"articleSection\":[\"softare development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-javascript-math-reference\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-javascript-math-reference\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-javascript-math-reference\\\/\",\"name\":\"Complete JavaScript Math Reference\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-javascript-math-reference\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-javascript-math-reference\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/2-5.png\",\"datePublished\":\"2025-10-17T16:54:38+00:00\",\"dateModified\":\"2025-10-17T16:54:39+00:00\",\"description\":\"The\u00a0Math\u00a0object in JavaScript is a\u00a0built-in object\u00a0that provides mathematical constants and functions.It\u2019s\u00a0not a constructor\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-javascript-math-reference\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-javascript-math-reference\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-javascript-math-reference\\\/#primaryimage\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/2-5.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/2-5.png\",\"width\":1080,\"height\":1080,\"caption\":\"javascript math reference\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-javascript-math-reference\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"softare development\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/softare-development\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Complete JavaScript Math Reference\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"name\":\"\",\"description\":\"Sustainable solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\",\"name\":\"Codeflare Limited\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"width\":1040,\"height\":263,\"caption\":\"Codeflare Limited\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\",\"name\":\"codeflare\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"caption\":\"codeflare\"},\"description\":\"Latest tech news and coding tips.\",\"sameAs\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\",\"https:\\\/\\\/facebook.com\\\/codeflretech\",\"https:\\\/\\\/instagram.com\\\/codeflaretech\",\"https:\\\/\\\/x.com\\\/codeflaretech\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1\"],\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/author\\\/watcher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Complete JavaScript Math Reference","description":"The\u00a0Math\u00a0object in JavaScript is a\u00a0built-in object\u00a0that provides mathematical constants and functions.It\u2019s\u00a0not a constructor","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/","og_locale":"en_US","og_type":"article","og_title":"Complete JavaScript Math Reference","og_description":"The\u00a0Math\u00a0object in JavaScript is a\u00a0built-in object\u00a0that provides mathematical constants and functions.It\u2019s\u00a0not a constructor","og_url":"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/","article_author":"https:\/\/facebook.com\/codeflretech","article_published_time":"2025-10-17T16:54:38+00:00","article_modified_time":"2025-10-17T16:54:39+00:00","og_image":[{"width":1080,"height":1080,"url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/10\/2-5.png","type":"image\/png"}],"author":"codeflare","twitter_card":"summary_large_image","twitter_creator":"@codeflaretech","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/#article","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/"},"author":{"name":"codeflare","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a"},"headline":"Complete JavaScript Math Reference","datePublished":"2025-10-17T16:54:38+00:00","dateModified":"2025-10-17T16:54:39+00:00","mainEntityOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/"},"wordCount":151,"commentCount":0,"publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/10\/2-5.png","articleSection":["softare development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/","url":"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/","name":"Complete JavaScript Math Reference","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/#primaryimage"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/10\/2-5.png","datePublished":"2025-10-17T16:54:38+00:00","dateModified":"2025-10-17T16:54:39+00:00","description":"The\u00a0Math\u00a0object in JavaScript is a\u00a0built-in object\u00a0that provides mathematical constants and functions.It\u2019s\u00a0not a constructor","breadcrumb":{"@id":"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/#primaryimage","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/10\/2-5.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/10\/2-5.png","width":1080,"height":1080,"caption":"javascript math reference"},{"@type":"BreadcrumbList","@id":"https:\/\/codeflarelimited.com\/blog\/complete-javascript-math-reference\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codeflarelimited.com\/blog\/"},{"@type":"ListItem","position":2,"name":"softare development","item":"https:\/\/codeflarelimited.com\/blog\/softare-development\/"},{"@type":"ListItem","position":3,"name":"Complete JavaScript Math Reference"}]},{"@type":"WebSite","@id":"https:\/\/codeflarelimited.com\/blog\/#website","url":"https:\/\/codeflarelimited.com\/blog\/","name":"","description":"Sustainable solutions","publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codeflarelimited.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codeflarelimited.com\/blog\/#organization","name":"Codeflare Limited","url":"https:\/\/codeflarelimited.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","width":1040,"height":263,"caption":"Codeflare Limited"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a","name":"codeflare","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","caption":"codeflare"},"description":"Latest tech news and coding tips.","sameAs":["https:\/\/codeflarelimited.com\/blog","https:\/\/facebook.com\/codeflretech","https:\/\/instagram.com\/codeflaretech","https:\/\/x.com\/codeflaretech","https:\/\/www.youtube.com\/channel\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1"],"url":"https:\/\/codeflarelimited.com\/blog\/author\/watcher\/"}]}},"jetpack_featured_media_url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/10\/2-5.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/3087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/comments?post=3087"}],"version-history":[{"count":1,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/3087\/revisions"}],"predecessor-version":[{"id":3089,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/3087\/revisions\/3089"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media\/3088"}],"wp:attachment":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media?parent=3087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/categories?post=3087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/tags?post=3087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}