{"id":442,"date":"2016-10-01T16:35:03","date_gmt":"2016-10-01T16:35:03","guid":{"rendered":"http:\/\/wenzo.net\/oldbonesjournal\/?p=442"},"modified":"2016-10-01T16:35:03","modified_gmt":"2016-10-01T16:35:03","slug":"creating-html-calculator","status":"publish","type":"post","link":"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/","title":{"rendered":"Creating a HTML Calculator"},"content":{"rendered":"<p>Do you want to know how to create your own calculator using HTML and Javascript? While you can use prompt and alert boxes like this:<\/p>\n<pre>&lt;!DOCTYPE html&gt;\r\n&lt;<span style=\"color: #ff0000;\">html<span style=\"color: #000000;\">&gt;\r\n<\/span><span style=\"color: #000000;\">   &lt;head&gt;\r\n      &lt;title&gt;Calculator&lt;\/title&gt;\r\n   &lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;h1&gt;Calculator&lt;\/h1&gt;\r\n&lt;script&gt;\r\nvar x = prompt(\"Type the first number here\");\r\nvar y = prompt(\"\r\n\r\n\r\n<\/span><\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Do you want to know how to create your own calculator using HTML and Javascript? While you can use prompt and alert boxes like this: &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Calculator&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;h1&gt;Calculator&lt;\/h1&gt; &lt;script&gt; var x = prompt(&#8220;Type the first number here&#8221;); var y = prompt(&#8220;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-442","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Creating a HTML Calculator - Old Bones Journal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating a HTML Calculator - Old Bones Journal\" \/>\n<meta property=\"og:description\" content=\"Do you want to know how to create your own calculator using HTML and Javascript? While you can use prompt and alert boxes like this: &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Calculator&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;h1&gt;Calculator&lt;\/h1&gt; &lt;script&gt; var x = prompt(&quot;Type the first number here&quot;); var y = prompt(&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/\" \/>\n<meta property=\"og:site_name\" content=\"Old Bones Journal\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-01T16:35:03+00:00\" \/>\n<meta name=\"author\" content=\"Ananth Ramaswamy\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ananth Ramaswamy\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/\"},\"author\":{\"name\":\"Ananth Ramaswamy\",\"@id\":\"https:\/\/wenzo.net\/oldbonesjournal\/#\/schema\/person\/608ff064d2ae9e48409db6b4f83d2a61\"},\"headline\":\"Creating a HTML Calculator\",\"datePublished\":\"2016-10-01T16:35:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/\"},\"wordCount\":29,\"commentCount\":0,\"articleSection\":[\"Family Anatidae\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/\",\"url\":\"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/\",\"name\":\"Creating a HTML Calculator - Old Bones Journal\",\"isPartOf\":{\"@id\":\"https:\/\/wenzo.net\/oldbonesjournal\/#website\"},\"datePublished\":\"2016-10-01T16:35:03+00:00\",\"author\":{\"@id\":\"https:\/\/wenzo.net\/oldbonesjournal\/#\/schema\/person\/608ff064d2ae9e48409db6b4f83d2a61\"},\"breadcrumb\":{\"@id\":\"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wenzo.net\/oldbonesjournal\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating a HTML Calculator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wenzo.net\/oldbonesjournal\/#website\",\"url\":\"https:\/\/wenzo.net\/oldbonesjournal\/\",\"name\":\"Old Bones Journal\",\"description\":\"Tales of a budding paleontologist\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wenzo.net\/oldbonesjournal\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wenzo.net\/oldbonesjournal\/#\/schema\/person\/608ff064d2ae9e48409db6b4f83d2a61\",\"name\":\"Ananth Ramaswamy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wenzo.net\/oldbonesjournal\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b54690981877631010aa7e66cc8981144bf9f317aedb06480c95562b12b6fa91?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b54690981877631010aa7e66cc8981144bf9f317aedb06480c95562b12b6fa91?s=96&d=mm&r=g\",\"caption\":\"Ananth Ramaswamy\"},\"description\":\"Ananth Ramaswamy is a naturalist who loves Paleontology and Ornithology. His first favorite subject is Paleontology. He knows a lot and is quite obsessed. Aditi, his sister, always says that his first movie choice would be something like Walking With Prehistoric Beasts, the movie that shows life after the dinosaurs and the mammal\u2019s Evolution. He would also see Walking With Dinosaurs or Walking With Monsters, The movies which tell life during and before the dinosaurs. For Ornithology, which he talks about more, was one of the two main reasons that he made this blog.\",\"sameAs\":[\"http:\/\/oldbonesjournal.com\"],\"url\":\"https:\/\/wenzo.net\/oldbonesjournal\/author\/ananth\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating a HTML Calculator - Old Bones Journal","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:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/","og_locale":"en_US","og_type":"article","og_title":"Creating a HTML Calculator - Old Bones Journal","og_description":"Do you want to know how to create your own calculator using HTML and Javascript? While you can use prompt and alert boxes like this: &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Calculator&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;h1&gt;Calculator&lt;\/h1&gt; &lt;script&gt; var x = prompt(\"Type the first number here\"); var y = prompt(\"","og_url":"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/","og_site_name":"Old Bones Journal","article_published_time":"2016-10-01T16:35:03+00:00","author":"Ananth Ramaswamy","twitter_misc":{"Written by":"Ananth Ramaswamy"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/#article","isPartOf":{"@id":"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/"},"author":{"name":"Ananth Ramaswamy","@id":"https:\/\/wenzo.net\/oldbonesjournal\/#\/schema\/person\/608ff064d2ae9e48409db6b4f83d2a61"},"headline":"Creating a HTML Calculator","datePublished":"2016-10-01T16:35:03+00:00","mainEntityOfPage":{"@id":"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/"},"wordCount":29,"commentCount":0,"articleSection":["Family Anatidae"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/","url":"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/","name":"Creating a HTML Calculator - Old Bones Journal","isPartOf":{"@id":"https:\/\/wenzo.net\/oldbonesjournal\/#website"},"datePublished":"2016-10-01T16:35:03+00:00","author":{"@id":"https:\/\/wenzo.net\/oldbonesjournal\/#\/schema\/person\/608ff064d2ae9e48409db6b4f83d2a61"},"breadcrumb":{"@id":"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wenzo.net\/oldbonesjournal\/2016\/10\/01\/creating-html-calculator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wenzo.net\/oldbonesjournal\/"},{"@type":"ListItem","position":2,"name":"Creating a HTML Calculator"}]},{"@type":"WebSite","@id":"https:\/\/wenzo.net\/oldbonesjournal\/#website","url":"https:\/\/wenzo.net\/oldbonesjournal\/","name":"Old Bones Journal","description":"Tales of a budding paleontologist","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wenzo.net\/oldbonesjournal\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wenzo.net\/oldbonesjournal\/#\/schema\/person\/608ff064d2ae9e48409db6b4f83d2a61","name":"Ananth Ramaswamy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wenzo.net\/oldbonesjournal\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b54690981877631010aa7e66cc8981144bf9f317aedb06480c95562b12b6fa91?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b54690981877631010aa7e66cc8981144bf9f317aedb06480c95562b12b6fa91?s=96&d=mm&r=g","caption":"Ananth Ramaswamy"},"description":"Ananth Ramaswamy is a naturalist who loves Paleontology and Ornithology. His first favorite subject is Paleontology. He knows a lot and is quite obsessed. Aditi, his sister, always says that his first movie choice would be something like Walking With Prehistoric Beasts, the movie that shows life after the dinosaurs and the mammal\u2019s Evolution. He would also see Walking With Dinosaurs or Walking With Monsters, The movies which tell life during and before the dinosaurs. For Ornithology, which he talks about more, was one of the two main reasons that he made this blog.","sameAs":["http:\/\/oldbonesjournal.com"],"url":"https:\/\/wenzo.net\/oldbonesjournal\/author\/ananth\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/wenzo.net\/oldbonesjournal\/wp-json\/wp\/v2\/posts\/442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wenzo.net\/oldbonesjournal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wenzo.net\/oldbonesjournal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wenzo.net\/oldbonesjournal\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/wenzo.net\/oldbonesjournal\/wp-json\/wp\/v2\/comments?post=442"}],"version-history":[{"count":3,"href":"https:\/\/wenzo.net\/oldbonesjournal\/wp-json\/wp\/v2\/posts\/442\/revisions"}],"predecessor-version":[{"id":445,"href":"https:\/\/wenzo.net\/oldbonesjournal\/wp-json\/wp\/v2\/posts\/442\/revisions\/445"}],"wp:attachment":[{"href":"https:\/\/wenzo.net\/oldbonesjournal\/wp-json\/wp\/v2\/media?parent=442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wenzo.net\/oldbonesjournal\/wp-json\/wp\/v2\/categories?post=442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wenzo.net\/oldbonesjournal\/wp-json\/wp\/v2\/tags?post=442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}