{"id":341,"date":"2011-12-20T09:58:25","date_gmt":"2011-12-20T09:58:25","guid":{"rendered":"http:\/\/javascript-tutor.net\/index.php\/"},"modified":"2018-04-08T09:41:43","modified_gmt":"2018-04-08T09:41:43","slug":"lesson-10-objects-part-2-math-object","status":"publish","type":"page","link":"https:\/\/javascript-tutor.net\/index.php\/lesson-10-objects-part-2-math-object\/","title":{"rendered":"JavaScript Lesson 10: Math Object"},"content":{"rendered":"<h4 align=\"center\"><a href=\"http:\/\/javascript-tutor.net\/index.php\/lesson-9-objects-part-1-date-object\/\/\">&lt;Lesson 9&gt;<\/a> <a href=\"http:\/\/javascript-tutor.net\/index.php\/javascript-tutorial\/\">[Contents]<\/a> <a href=\"http:\/\/javascript-tutor.net\/index.php\/lesson-11-objects-part-3-string-object\/\">&lt;Lesson 11&gt;<\/a><\/h4>\n<p><strong>M<\/strong>ath object is an important JavaScript object because it can be used to perform web-based mathematical calculations. It can compute data input by the user and then displays its output on the webpage. It is very useful for the programmer to design online applications that involve calculations and games. We will see examples that use Math object in later lessons. These are various methods and properties of the Math object which we can use to perform mathematical calculations. These methods and properties are listed below:<br \/>\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"5669011038\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h3><strong>10.1 Math Methods<\/strong><\/h3>\n<p>Math methods are also known as functions, they are indeed the built-in functions of JavaScript. The term method implies that the function belongs to a particular object. In fact, the terms method and function can be used interchangeably. Below is a list of methods that are tied to the Math object.<\/p>\n<table id=\"table3\" style=\"table-layout: fixed; width: 80%; font-size: 100%;\" border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>\n<th valign=\"top\" width=\"auto\"><strong>Methods<\/strong><\/th>\n<th valign=\"top\"><strong>Description<\/strong><\/th>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"auto\">abs(x)<\/td>\n<td valign=\"top\">Returns absolute value of x<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">acos(x)<\/td>\n<td valign=\"top\">Returns arc cosine of x (i.e cos<sup>-1<\/sup>x)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">asin(x)<\/td>\n<td valign=\"top\">Returns arc sine of x (i.e sin<sup>-1<\/sup>x)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">atan(x)<\/td>\n<td valign=\"top\">Returns arc tangent of x (i.e tan<sup>-1<\/sup>x)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">cos(x)<\/td>\n<td valign=\"top\">Returns the value of cosine x<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">sin(x)<\/td>\n<td valign=\"top\">Returns the value of sine x<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">tan(x)<\/td>\n<td valign=\"top\">Returns the value of tangent x<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">exp(x)<\/td>\n<td valign=\"top\">Returns the value of e to the power of x (i.e\u00a0 e<sup>x<\/sup>)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">log(x)<\/td>\n<td valign=\"top\">Returns the natural logarithm of x<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">max(x,y)<\/td>\n<td valign=\"top\">Returns the greater value of x and y<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">min(x,y)<\/td>\n<td valign=\"top\">Returns the greater value of x and y<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">round(x)<\/td>\n<td valign=\"top\">Rounds off a number x to the nearest integer<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">pow(x,y)<\/td>\n<td valign=\"top\">Returns x to the power of y\u00a0 (i.e\u00a0 x<sup>y<\/sup>)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">sqrt(x)<\/td>\n<td valign=\"top\">Returns the square root of x<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">ceil(x)<\/td>\n<td valign=\"top\">Returns the least integer greater than or equal to x<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"264\">floor(x)<\/td>\n<td valign=\"top\">Returns the greatest integer less than or equal to x<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The JavaScript syntax for the Math method is\u00a0 Math.<em>Method, <\/em>where math must begin with the capital M. Using small m just will not work. For example, if you wish to compute the value of log 100, you write the code as Math.log(100), the value must always enclose within a bracket. In order to display the value on the web page, you can use the Document object together with the write method such as\u00a0<strong>Document.write(Math.log(100)).<\/strong> For trigonometric calculations, you need to convert the values between radian and degree. For example, to compute the value of cos(60), you need to convert 60 to radian first otherwise you will get the wrong answer. The conversion can be done using the formula (60xPI)\/180, written in JavaScript will be something like Math.cos((60*Math.PI)\/180)<\/p>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"5669011038\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<p>The following example demonstrates the usage of Math methods in JavaScript.<\/p>\n<h4><strong>Example 10.1<\/strong><\/h4>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=\"Content-Language\" content=\"en-us\"&gt;\r\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=windows-1252\"&gt;\r\n&lt;title&gt;Example 10.1&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;h2&gt;&lt;font face=\"Arial\"&gt;Example 10.1&lt;\/font&gt;&lt;\/h2&gt;\r\n&lt;h1&gt;Using Math Methods&lt;\/h1&gt;\r\n&lt;script language=\"javascript\"&gt;\r\ndocument.write ((\"The absolute value of -5.12 is : \")+Math.abs(-5.12));\r\ndocument.write ((\"&lt;br&gt;The value of acos0 is : \")+Math.acos(0)+(\" in radian\")+(\" and \")+(Math.acos(0)\/Math.PI)*180+(\" in degree\"));\r\ndocument.write ((\"&lt;br&gt;The value of asin(0.5) is : \")+Math.asin(0.5)+(\" in radian\")+(\" and \")+Math.round((Math.asin(0.5)\/Math.PI)*180)+(\" in degree\"));\r\ndocument.write ((\"&lt;br&gt;The value of tan 45 is : \")+Math.round(Math.tan((45*Math.PI)\/180)));\r\ndocument.write ((\"&lt;br&gt;The value of sin 120 is : \")+Math.sin((120*Math.PI)\/180));\r\ndocument.write ((\"&lt;br&gt;The value of cos240 is : \")+Math.cos((240*Math.PI)\/180));\r\ndocument.write ((\"&lt;br&gt;The value of exp(3) is : \")+Math.exp(3));\r\ndocument.write ((\"&lt;br&gt;The value of ln(3) is : \")+Math.log(3));\r\ndocument.write ((\"&lt;br&gt;The value of greater number among 98 and 99 is : \")+Math.max(98,99));\r\ndocument.write ((\"&lt;br&gt;The value of smaller number among 98 and 99 is : \")+Math.min(98,99));\r\ndocument.write ((\"&lt;br&gt;The value of square root of 200 is : \")+Math.sqrt(200));\r\ndocument.write(\"&lt;br&gt;\")\r\n&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>The output is as follows:<\/p>\n<div class=\"outputbg\">\n<h4><strong>Example 10.1 Using Math Methods<\/strong><\/h4>\n<p><span style=\"font-family: Arial; font-size: small;\">The absolute value of -5.12 is: 5.12<br \/>\nThe value of acos0 is: 1.5707963267948966 in radian and 90 in degree<br \/>\nThe value of asin(0.5) is: 0.5235987755982989 in radian and 30 in degree<br \/>\nThe value of tan 45 is: 1<br \/>\nThe value of sin 120 is: 0.8660254037844387<br \/>\nThe value of cos240 is: -0.5000000000000004<br \/>\nThe value of exp(3) is: 20.085536923187668<br \/>\nThe value of ln(3) is: 1.0986122886681098<br \/>\nThe value of greater number among 98 and 99 is: 99<br \/>\nThe value of smaller number among 98 and 99 is: 98<br \/>\nThe value of square root of 200 is: 14.142135623730951<br \/>\nThe absolute value of -5.12 is: 5.12<br \/>\nThe value of acos0 is: 1.5707963267948965 in radian and 90 in degree<br \/>\nThe value of asin(0.5) is: 0.5235987755982989 in radian and 30 in degree<br \/>\nThe value of tan 45 is: 1<br \/>\nThe value of sin 120 is: 0.8660254037844387<br \/>\nThe value of cos240 is: -0.5000000000000004<br \/>\nThe value of exp(3) is: 20.085536923187668<br \/>\nThe value of ln(3) is: 1.0986122886681097<br \/>\nThe value of greater number among 98 and 99 is: 99<br \/>\nThe value of smaller number among 98 and 99 is: 98<br \/>\nThe value of square root of 200 is: 14.142135623730951<\/span><\/p>\n<p><span style=\"font-family: Arial; font-size: small;\">Click\u00a0<a href=\"http:\/\/javascript-tutor.net\/java_tutor\/Javascrpt_Example10.1.htm\">Example 10.1<\/a> to see the actual output\u00a0to see the actual output<\/span><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<h3><strong>10.2 Math Properties<\/strong><\/h3>\n<p>Other than the aforementioned methods, the Math object also consists of a few properties which also represent certain constant values. These properties are listed in the following table:<\/p>\n<table border=\"1\" width=\"84%\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<th>Property<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>E<\/td>\n<td>Euler&#8217;s constant\u00a0 ( the value is 2.718)<\/td>\n<\/tr>\n<tr>\n<td>LN10<\/td>\n<td>Natural logarithm of 10 (the value is 2.302)<\/td>\n<\/tr>\n<tr>\n<td>LN2<\/td>\n<td>Natural logarithm of 2 ( the value is 0.693)<\/td>\n<\/tr>\n<tr>\n<td>LOG2E<\/td>\n<td>Logarithm to the base 2 of e\u00a0 (log<sub>2<\/sub>e )<\/td>\n<\/tr>\n<tr>\n<td>LOG10E<\/td>\n<td>Logarithm to the base 10 of e\u00a0 (log<sub>10<\/sub>e )<\/td>\n<\/tr>\n<tr>\n<td>PI<\/td>\n<td>The value of PI which is equal 3.14<\/td>\n<\/tr>\n<tr>\n<td>SQRT1_2<\/td>\n<td>The square root of half<\/td>\n<\/tr>\n<tr>\n<td>SQRT2<\/td>\n<td>The square root of 2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>To use the Math properties, the syntax is<\/p>\n<p><strong>Math.<em>property.<\/em><\/strong><\/p>\n<p>For example, Math.LN2 will give you the value of ln2 or log<sub>e<\/sub>2. Bear in mind that you have to use capital letter M for the Math object otherwise it will not compute. In order to display the value on a web page, you need to use the document object together with the write method. For example, you can use document.write(SQRT2) to display the value of square root of 2. The following example demonstrates the usage of Math properties to compute various mathematical values.<\/p>\n<h4><strong>Example 10.2<\/strong><\/h4>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=windows-1252\"&gt;\r\n&lt;title&gt;Math Properties&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;h1&gt;Using Math properties&lt;\/h1&gt;\r\n&lt;script&gt;\r\n\r\ndocument.write ((\"The value of e is : \")+Math.E);\r\ndocument.write ((\"&lt;br&gt;The value of e is : \")+Math.round(Math.E));\r\ndocument.write ((\"&lt;br&gt;The value of ln10 is : \")+Math.LN10);\r\ndocument.write ((\"&lt;br&gt;The value of ln2 is : \")+Math.LN2);\r\ndocument.write ((\"&lt;br&gt;The value of Pi is : \")+Math.PI);\r\ndocument.write ((\"&lt;br&gt;The value of Square root of 1\/2 is : \")+Math.SQRT1_2);\r\ndocument.write ((\"&lt;br&gt;The value of Square root 2 is : \")+Math.SQRT2);\r\ndocument.write(\"&lt;br&gt;\")\r\ndocument.write(\"&lt;br&gt;&lt;em&gt;The value of e in line 2 has been rounded off&lt;\/em&gt;\");\r\n&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n<\/pre>\n<p>The output is shown below:<\/p>\n<div class=\"outputbg\">\n<h1>Using Math properties<\/h1>\n<p>The value of e is: 2.718281828459045<br \/>\nThe value of e is: 3<br \/>\nThe value of ln10 is: 2.302585092994046<br \/>\nThe value of ln2 is: 0.6931471805599453<br \/>\nThe value of Pi is: 3.141592653589793<br \/>\nThe value of Square root of 1\/2 is: 0.7071067811865476<br \/>\nThe value of Square root 2 is: 1.4142135623730951<\/p>\n<p><em>The value of e in line 2 has been rounded off<\/em> The value of e is: 2.718281828459045<br \/>\nThe value of e is: 3<br \/>\nThe value of ln10 is: 2.302585092994046<br \/>\nThe value of ln2 is: 0.6931471805599453<br \/>\nThe value of Pi is: 3.141592653589793<br \/>\nThe value of Square root of 1\/2 is: 0.7071067811865476<br \/>\nThe value of Square root 2 is: 1.4142135623730951<\/p>\n<p><em>The value of e in line 2 has been rounded off<\/em><\/p>\n<\/div>\n<p>Click<a href=\"http:\/\/javascript-tutor.net\/java_tutor\/Javascrpt_Example10.2.htm\"> Example 10.2<\/a> to see the actual output.<\/p>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"5669011038\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h4 align=\"center\"><a href=\"http:\/\/javascript-tutor.net\/index.php\/lesson-9-objects-part-1-date-object\/\/\">&lt;Lesson 9&gt;<\/a> <a href=\"http:\/\/javascript-tutor.net\/index.php\/javascript-tutorial\/\">[Contents]<\/a> <a href=\"http:\/\/javascript-tutor.net\/index.php\/lesson-11-objects-part-3-string-object\/\">&lt;Lesson 11&gt;<\/a><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>&lt;Lesson 9&gt; [Contents] &lt;Lesson 11&gt; Math object is an important JavaScript object because it can be used to perform web-based mathematical calculations. It can compute data input by the user and then displays its output on the webpage. It is very useful for the programmer to design online applications that involve calculations and games. We &hellip; <a href=\"https:\/\/javascript-tutor.net\/index.php\/lesson-10-objects-part-2-math-object\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;JavaScript Lesson 10: Math Object&#8221;<\/span><\/a><\/p>\n","protected":false},"author":35895,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-341","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JavaScript Lesson 10: Math Object - Learn JavaScript Online | Free Interactive JavaScript Tutorials<\/title>\n<meta name=\"description\" content=\"Learn how to use the Math Object in javascript\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/javascript-tutor.net\/jstutor\/jstutor_lesson10.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Lesson 10: Math Object - Learn JavaScript Online | Free Interactive JavaScript Tutorials\" \/>\n<meta property=\"og:description\" content=\"Learn how to use the Math Object in javascript\" \/>\n<meta property=\"og:url\" content=\"http:\/\/javascript-tutor.net\/jstutor\/jstutor_lesson10.html\" \/>\n<meta property=\"og:site_name\" content=\"Learn JavaScript Online | Free Interactive JavaScript Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2018-04-08T09:41:43+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/javascript-tutor.net\/index.php\/lesson-10-objects-part-2-math-object\/\",\"url\":\"http:\/\/javascript-tutor.net\/jstutor\/jstutor_lesson10.html\",\"name\":\"JavaScript Lesson 10: Math Object - Learn JavaScript Online | Free Interactive JavaScript Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/javascript-tutor.net\/#website\"},\"datePublished\":\"2011-12-20T09:58:25+00:00\",\"dateModified\":\"2018-04-08T09:41:43+00:00\",\"description\":\"Learn how to use the Math Object in javascript\",\"breadcrumb\":{\"@id\":\"http:\/\/javascript-tutor.net\/jstutor\/jstutor_lesson10.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/javascript-tutor.net\/jstutor\/jstutor_lesson10.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/javascript-tutor.net\/jstutor\/jstutor_lesson10.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/javascript-tutor.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript Lesson 10: Math Object\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/javascript-tutor.net\/#website\",\"url\":\"https:\/\/javascript-tutor.net\/\",\"name\":\"Learn JavaScript Online | Free Interactive JavaScript Tutorials\",\"description\":\"Master JavaScript with free, interactive tutorials for beginners and experienced coders. Practice live coding and visualize how JavaScript works step by step.\",\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript Lesson 10: Math Object - Learn JavaScript Online | Free Interactive JavaScript Tutorials","description":"Learn how to use the Math Object in javascript","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":"http:\/\/javascript-tutor.net\/jstutor\/jstutor_lesson10.html","og_locale":"en_US","og_type":"article","og_title":"JavaScript Lesson 10: Math Object - Learn JavaScript Online | Free Interactive JavaScript Tutorials","og_description":"Learn how to use the Math Object in javascript","og_url":"http:\/\/javascript-tutor.net\/jstutor\/jstutor_lesson10.html","og_site_name":"Learn JavaScript Online | Free Interactive JavaScript Tutorials","article_modified_time":"2018-04-08T09:41:43+00:00","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/javascript-tutor.net\/index.php\/lesson-10-objects-part-2-math-object\/","url":"http:\/\/javascript-tutor.net\/jstutor\/jstutor_lesson10.html","name":"JavaScript Lesson 10: Math Object - Learn JavaScript Online | Free Interactive JavaScript Tutorials","isPartOf":{"@id":"https:\/\/javascript-tutor.net\/#website"},"datePublished":"2011-12-20T09:58:25+00:00","dateModified":"2018-04-08T09:41:43+00:00","description":"Learn how to use the Math Object in javascript","breadcrumb":{"@id":"http:\/\/javascript-tutor.net\/jstutor\/jstutor_lesson10.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/javascript-tutor.net\/jstutor\/jstutor_lesson10.html"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/javascript-tutor.net\/jstutor\/jstutor_lesson10.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/javascript-tutor.net\/"},{"@type":"ListItem","position":2,"name":"JavaScript Lesson 10: Math Object"}]},{"@type":"WebSite","@id":"https:\/\/javascript-tutor.net\/#website","url":"https:\/\/javascript-tutor.net\/","name":"Learn JavaScript Online | Free Interactive JavaScript Tutorials","description":"Master JavaScript with free, interactive tutorials for beginners and experienced coders. Practice live coding and visualize how JavaScript works step by step.","inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/pages\/341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/users\/35895"}],"replies":[{"embeddable":true,"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/comments?post=341"}],"version-history":[{"count":39,"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/pages\/341\/revisions"}],"predecessor-version":[{"id":2544,"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/pages\/341\/revisions\/2544"}],"wp:attachment":[{"href":"https:\/\/javascript-tutor.net\/index.php\/wp-json\/wp\/v2\/media?parent=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}