{"id":9369,"date":"2024-01-10T18:02:00","date_gmt":"2024-01-10T18:02:00","guid":{"rendered":"https:\/\/codehim.com\/?p=9369"},"modified":"2024-01-22T16:03:24","modified_gmt":"2024-01-22T11:03:24","slug":"roman-numeral-converter-using-javascript","status":"publish","type":"post","link":"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/","title":{"rendered":"Roman Numeral Converter Using JavaScript"},"content":{"rendered":"<p>The Roman Numeral Converter is a handy JavaScript tool that allows you to effortlessly convert decimal numbers into Roman numerals. It works by utilizing two arrays: one containing decimal values and the other with corresponding Roman numerals.<\/p>\n<p>The main functionality is encapsulated in the <code>convertToRoman<\/code> method, which takes a numeric input and returns its Roman numeral representation. This code is helpful for quickly converting numbers to Roman numerals, making it a handy tool for various applications.<\/p>\n<h2>How to Convert Numbers to Roman Numerals Using Javascript<\/h2>\n<p>1. First of all, load the Google Fonts by adding the following CDN link into the head tag of your webpage&#8217;s &lt;head&gt; tag. (Optional)<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;link rel='stylesheet' href='https:\/\/fonts.googleapis.com\/css?family=Muli&amp;amp;display=swap'&gt;\r\n<\/pre>\n<p>2. Within the HTML file, include an input field for entering decimal numbers, a button to trigger the conversion, and an area to display the Roman numeral result. For example:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div id=\"container\"&gt;\r\n      &lt;div class=\"panel\"&gt;\r\n        &lt;h1&gt;Roman Numeral Converter&lt;\/h1&gt;\r\n        &lt;h4&gt;\r\n          &lt;span&gt;Convert the number into a&lt;\/span&gt; &lt;span&gt;roman numeral&lt;\/span&gt;\r\n        &lt;\/h4&gt;\r\n        &lt;input id=\"convert\" type=\"text\" placeholder=\"Type any number...\" \/&gt;\r\n        &lt;button\r\n          onclick=\"convertToRoman(document.getElementById('convert').value)\"\r\n        &gt;\r\n          Convert\r\n        &lt;\/button&gt;\r\n        &lt;div class=\"result-container\"&gt;\r\n          &lt;span id=\"result\"&gt;&lt;\/span&gt;\r\n          &lt;button class=\"btn\" id=\"clipboard\"&gt;\r\n            &lt;i class=\"far fa-clipboard\"&gt;&lt;\/i&gt;\r\n          &lt;\/button&gt;\r\n        &lt;\/div&gt;\r\n        &lt;small&gt;\r\n          Click the \"Convert\" button for the result. &lt;br \/&gt;\r\n          You can also copy Roman Numerals by clicking the icon on the right\r\n          side of the result.\r\n        &lt;\/small&gt;\r\n      &lt;\/div&gt;\r\n    &lt;\/div&gt;<\/pre>\n<p>3. Now, style the basic interface for the converter using the following CSS styles:<\/p>\n<pre class=\"prettyprint linenums lang-css\">* {\r\n  margin: 0;\r\n  padding: 0;\r\n  box-sizing: border-box;\r\n}\r\n\r\nbody {\r\n  font-family: \"Muli\", sans-serif;\r\n  color: #fff;\r\n  height: 100vh;\r\n  text-align: center;\r\n}\r\n\r\n#container {\r\n  \/*Photo by Cristina Gottardi on Unsplash - https:\/\/unsplash.com\/photos\/I1Lv2yX67GI*\/\r\n  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),\r\n    url(\"https:\/\/images.unsplash.com\/photo-1525874684015-58379d421a52?ixlib=rb-1.2.1&amp;ixid=eyJhcHBfaWQiOjEyMDd9&amp;auto=format&amp;fit=crop&amp;w=1650&amp;q=80\");\r\n  width: 100vw;\r\n  height: 100vh;\r\n  background-size: cover;\r\n  background-position: bottom center;\r\n  display: flex;\r\n  align-items: center;\r\n  justify-content: center;\r\n}\r\n\r\n.panel {\r\n  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));\r\n  border-radius: 15px;\r\n  padding: 30px;\r\n  margin: 15px;\r\n}\r\n\r\n.panel h4,\r\nh1 {\r\n  margin-bottom: 20px;\r\n  letter-spacing: 0.5px;\r\n}\r\n\r\n.panel h4 span:first-of-type {\r\n  opacity: 0.5;\r\n}\r\n\r\n.panel span:nth-of-type(2) {\r\n  color: #dd87ff;\r\n}\r\n\r\n.panel input,\r\n.panel button {\r\n  border: none;\r\n  border-radius: 3px;\r\n  display: block;\r\n  font-size: 16px;\r\n  padding: 8px 10px;\r\n  margin: 15px 0;\r\n  width: 100%;\r\n}\r\n\r\n.panel button {\r\n  background-image: linear-gradient(to bottom right, #c564eb, #c85ff1);\r\n  border: 1px solid rgba(255, 255, 255, 0.3);\r\n  color: #fff;\r\n  cursor: pointer;\r\n}\r\n\r\n.panel small {\r\n  font-size: 0.75em;\r\n  line-height: 10px;\r\n  opacity: 0.5;\r\n  letter-spacing: 1px;\r\n}\r\n\r\n.result-container {\r\n  background-color: rgba(0, 0, 0, 0.4);\r\n  display: flex;\r\n  justify-content: flex-start;\r\n  align-items: center;\r\n  position: relative;\r\n  font-size: 18px;\r\n  letter-spacing: 1px;\r\n  padding: 12px 10px;\r\n  height: 50px;\r\n  width: 100%;\r\n  margin: 15px 0;\r\n}\r\n\r\n.result-container #result {\r\n  word-wrap: break-word;\r\n  max-width: calc(100% - 40px);\r\n}\r\n\r\n.result-container .btn {\r\n  font-size: 20px;\r\n  position: absolute;\r\n  top: 5px;\r\n  right: 5px;\r\n  height: 40px;\r\n  width: 40px;\r\n  margin: 0;\r\n}\r\n\r\n.btn {\r\n  border: none;\r\n  color: #fff;\r\n  cursor: pointer;\r\n  font-size: 16px;\r\n  padding: 8px 12px;\r\n}<\/pre>\n<p>4. Load the <a href=\"https:\/\/fontawesome.com\/docs\/web\/setup\/use-kit\" target=\"_blank\" rel=\"noopener\">Font Awesome Icons Kit<\/a> by adding the following CDN link just before closing the<code> &lt;body&gt;<\/code> element:<\/p>\n<pre class=\"prettyprint linenums lang-html\"> &lt;script src='https:\/\/kit.fontawesome.com\/7a230f0a67.js'&gt;&lt;\/script&gt;<\/pre>\n<p>5. Finally, include the following JavaScript code into your HTML file, either by linking an external file or placing it within <code>&lt;script&gt;<\/code> tags.<\/p>\n<pre class=\"prettyprint linenums lang-js\">function convertToRoman(num) {\r\n  let decimalValue = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1];\r\n  let romanNumeral = [\r\n    \"M\",\r\n    \"CM\",\r\n    \"D\",\r\n    \"CD\",\r\n    \"C\",\r\n    \"XC\",\r\n    \"L\",\r\n    \"XL\",\r\n    \"X\",\r\n    \"IX\",\r\n    \"V\",\r\n    \"IV\",\r\n    \"I\"\r\n  ];\r\n\r\n  let romanized = \"\";\r\n\r\n  for (let index = 0; index &lt; decimalValue.length; index++) {\r\n    while (decimalValue[index] &lt;= num) {\r\n      romanized += romanNumeral[index];\r\n      num -= decimalValue[index];\r\n    }\r\n  }\r\n\r\n  if (typeof num === \"number\") {\r\n    return (document.getElementById(\"result\").innerHTML = romanized);\r\n  }\r\n  return (document.getElementById(\"result\").innerHTML =\r\n    \"Your input is not valid!\");\r\n}\r\n\r\ndocument.getElementById(\"clipboard\").addEventListener(\"click\", copyToClipboard);\r\n\r\nfunction copyToClipboard() {\r\n  let copyText = document.getElementById(\"result\");\r\n  let textArea = document.createElement(\"textarea\");\r\n\r\n  const emptyResultField = result.innerText;\r\n  if (!emptyResultField) {\r\n    return;\r\n  }\r\n\r\n  textArea.value = copyText.textContent;\r\n  document.body.appendChild(textArea);\r\n  textArea.select();\r\n  document.execCommand(\"Copy\");\r\n  textArea.remove();\r\n\r\n  alert(\"Roman numerals copied to clipboard!\");\r\n}<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully created a Roman Numeral Converter using JavaScript. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Roman Numeral Converter is a handy JavaScript tool that allows you to effortlessly convert decimal numbers into Roman numerals&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":9389,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[97],"tags":[],"class_list":["post-9369","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-text-input"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Roman Numeral Converter Using JavaScript &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Roman Numeral Converter Using JavaScript. You can view demo and download the source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Roman Numeral Converter Using JavaScript &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Roman Numeral Converter Using JavaScript. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-10T18:02:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T11:03:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Roman-Numeral-Converter-Using-JavaScript.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Roman Numeral Converter Using JavaScript\",\"datePublished\":\"2024-01-10T18:02:00+00:00\",\"dateModified\":\"2024-01-22T11:03:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/\"},\"wordCount\":221,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Roman-Numeral-Converter-Using-JavaScript.png\",\"articleSection\":[\"Text &amp; Input\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/\",\"url\":\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/\",\"name\":\"Roman Numeral Converter Using JavaScript &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Roman-Numeral-Converter-Using-JavaScript.png\",\"datePublished\":\"2024-01-10T18:02:00+00:00\",\"dateModified\":\"2024-01-22T11:03:24+00:00\",\"description\":\"Here is a free code snippet to create a Roman Numeral Converter Using JavaScript. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Roman-Numeral-Converter-Using-JavaScript.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Roman-Numeral-Converter-Using-JavaScript.png\",\"width\":1280,\"height\":960,\"caption\":\"Roman Numeral Converter Using JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Text &amp; Input\",\"item\":\"https:\/\/codehim.com\/category\/text-input\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Roman Numeral Converter Using JavaScript\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Roman Numeral Converter Using JavaScript &#8212; CodeHim","description":"Here is a free code snippet to create a Roman Numeral Converter Using JavaScript. You can view demo and download the source code.","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:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Roman Numeral Converter Using JavaScript &#8212; CodeHim","og_description":"Here is a free code snippet to create a Roman Numeral Converter Using JavaScript. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-10T18:02:00+00:00","article_modified_time":"2024-01-22T11:03:24+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Roman-Numeral-Converter-Using-JavaScript.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Roman Numeral Converter Using JavaScript","datePublished":"2024-01-10T18:02:00+00:00","dateModified":"2024-01-22T11:03:24+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/"},"wordCount":221,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Roman-Numeral-Converter-Using-JavaScript.png","articleSection":["Text &amp; Input"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/","url":"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/","name":"Roman Numeral Converter Using JavaScript &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Roman-Numeral-Converter-Using-JavaScript.png","datePublished":"2024-01-10T18:02:00+00:00","dateModified":"2024-01-22T11:03:24+00:00","description":"Here is a free code snippet to create a Roman Numeral Converter Using JavaScript. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Roman-Numeral-Converter-Using-JavaScript.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Roman-Numeral-Converter-Using-JavaScript.png","width":1280,"height":960,"caption":"Roman Numeral Converter Using JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/text-input\/roman-numeral-converter-using-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Text &amp; Input","item":"https:\/\/codehim.com\/category\/text-input\/"},{"@type":"ListItem","position":3,"name":"Roman Numeral Converter Using JavaScript"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":1052,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=9369"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9369\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/9389"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=9369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=9369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=9369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}