{"id":10428,"date":"2024-03-01T10:31:00","date_gmt":"2024-03-01T10:31:00","guid":{"rendered":"https:\/\/codehim.com\/?p=10428"},"modified":"2024-03-04T08:31:59","modified_gmt":"2024-03-04T03:31:59","slug":"profit-loss-calculator-in-javascript","status":"publish","type":"post","link":"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/","title":{"rendered":"Profit &#038; Loss Calculator in JavaScript"},"content":{"rendered":"<p>This JavaScript code powers a Profit and loss Visual Calculator. It takes your sales and expenses amounts to calculate your profit or loss instantly. Just enter the sales and expenses figures, hit &#8216;Calculate,&#8217; and get immediate feedback on your financial situation.<\/p>\n<p>You can use this code on websites needing quick profit and loss calculations. It&#8217;s handy for small businesses or entrepreneurs to swiftly determine their financial standing.<\/p>\n<h2>How to Create a Profit &amp; Loss Calculator in JavaScript<\/h2>\n<p>1. First of all, load the <a href=\"https:\/\/getbootstrap.com\/\" target=\"_blank\" rel=\"noopener\">Bootstrap CSS<\/a> by adding the following CDN link into the head tag of your HTML document.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;link rel='stylesheet' href='https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.4.1\/css\/bootstrap.min.css'&gt;<\/pre>\n<p>2. Copy the following HTML code into your webpage where you want to display the <a href=\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/\" target=\"_blank\" rel=\"noopener\">calculator<\/a>.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"container-fluid\"&gt;\r\n  &lt;div class=\"row\"&gt;\r\n    &lt;div class=\"col-md\"&gt;&lt;\/div&gt;\r\n    &lt;div class=\"col col-md-6\"&gt;\r\n\r\n      &lt;div class=\"spacer-0\"&gt;\r\n        &lt;h1 class=\"text-success\"&gt;Profit &amp; Loss Visual Calculator&lt;\/h1&gt;\r\n\r\n        &lt;div class=\"spacer-2\"&gt;\r\n          &lt;div class=\"form-group\"&gt;\r\n            &lt;label&gt;Amount of sales ($)&lt;\/label&gt;\r\n            &lt;input id=\"input-sales\" type=\"number\" \r\n                   class=\"form-control\" required \/&gt;\r\n          &lt;\/div&gt;\r\n          &lt;div class=\"form-group\"&gt;\r\n            &lt;label&gt;Amount of expenses ($)&lt;\/label&gt;\r\n            &lt;input id=\"input-losses\" type=\"number\" \r\n                   class=\"form-control\" required \/&gt;\r\n          &lt;\/div&gt;\r\n\r\n          &lt;div id=\"profit-n-loss-result\" \r\n               class=\"alert alert-primary d-none\"&gt;&lt;\/div&gt;\r\n\r\n          &lt;button id=\"calculator-profit-n-loss\"\r\n                  class=\"btn btn-warning\"&gt;\r\n            Calculate&lt;\/button&gt;\r\n\r\n          &lt;!-- Not functional in codepen ---&gt;\r\n          &lt;!--\r\n          &lt;button id=\"refresh-calculator\"\r\n                  class=\"btn btn-danger text-white float-right\"&gt;\r\n            Refresh&lt;\/button&gt;\r\n          --&gt;\r\n        &lt;\/div&gt;\r\n      &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n    &lt;div class=\"col-md greyed\"&gt;&lt;\/div&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>3. The CSS code is there to style the calculator&#8217;s elements. Ensure the following CSS is included in your HTML or in a linked stylesheet.<\/p>\n<pre class=\"prettyprint linenums lang-css\">.greyed {\r\n    background-color: #f8f9fa;\r\n}\r\n\r\n.spacer-0 {\r\n    margin: 2rem 0;\r\n}\r\n\r\n.spacer-2 {\r\n    margin: 3.2rem 0;\r\n}<\/pre>\n<p>4. Finally, copy the following JavaScript code into a <code>&lt;script&gt;<\/code> tag within your HTML file or link an external JavaScript file.<\/p>\n<pre class=\"prettyprint linenums lang-js\">\/\/ Profit &amp; Loss Calculator\r\nvar calculator = document\r\n    .getElementById('calculator-profit-n-loss')\r\n    .addEventListener('click', profit_N_loss);\r\n\r\nvar refresh_calculator = document\r\n    .getElementById('refresh-calculator')\r\n    .addEventListener('click', refresh_calc);\r\n\r\nfunction refresh_calc() {\r\n    location.reload();\r\n}\r\n\r\nfunction profit_N_loss(income_raw, loss_raw) {\r\n    var income_raw = document.getElementById('input-sales').value;\r\n    var loss_raw = document.getElementById('input-losses').value;\r\n\r\n    income = parseInt(income_raw);\r\n    loss = parseInt(loss_raw);\r\n    var value = income - loss;\r\n\r\n    var result_div = document.getElementById('profit-n-loss-result');\r\n    result_div.classList.remove('d-none');\r\n    if (value &gt; 0) {\r\n        result_div.innerHTML = 'Your profit is $ ' + value;\r\n    } else {\r\n        result_div.innerHTML = 'Your loss is $ ' + value;\r\n    }\r\n}<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully created a Profit and loss Calculator on your website. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript code powers a Profit and loss Visual Calculator. It takes your sales and expenses amounts to calculate your&#8230;<\/p>\n","protected":false},"author":1,"featured_media":10437,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[116],"tags":[],"class_list":["post-10428","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vanilla-javascript"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Profit &amp; Loss Calculator in JavaScript &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Profit &amp; Loss Calculator in 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\/vanilla-javascript\/profit-loss-calculator-in-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Profit &amp; Loss Calculator in JavaScript &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Profit &amp; Loss Calculator in JavaScript. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-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-03-01T10:31:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-04T03:31:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Profit-Loss-Calculator-in-JavaScript.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"980\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Profit &#038; Loss Calculator in JavaScript\",\"datePublished\":\"2024-03-01T10:31:00+00:00\",\"dateModified\":\"2024-03-04T03:31:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/\"},\"wordCount\":191,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Profit-Loss-Calculator-in-JavaScript.png\",\"articleSection\":[\"Vanilla JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/\",\"url\":\"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/\",\"name\":\"Profit & Loss Calculator in JavaScript &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Profit-Loss-Calculator-in-JavaScript.png\",\"datePublished\":\"2024-03-01T10:31:00+00:00\",\"dateModified\":\"2024-03-04T03:31:59+00:00\",\"description\":\"Here is a free code snippet to create a Profit & Loss Calculator in JavaScript. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Profit-Loss-Calculator-in-JavaScript.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Profit-Loss-Calculator-in-JavaScript.png\",\"width\":1280,\"height\":980,\"caption\":\"Profit & Loss Calculator in JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Vanilla JavaScript\",\"item\":\"https:\/\/codehim.com\/category\/vanilla-javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Profit &#038; Loss Calculator in 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":"Profit & Loss Calculator in JavaScript &#8212; CodeHim","description":"Here is a free code snippet to create a Profit & Loss Calculator in 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\/vanilla-javascript\/profit-loss-calculator-in-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Profit & Loss Calculator in JavaScript &#8212; CodeHim","og_description":"Here is a free code snippet to create a Profit & Loss Calculator in JavaScript. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-03-01T10:31:00+00:00","article_modified_time":"2024-03-04T03:31:59+00:00","og_image":[{"width":1280,"height":980,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Profit-Loss-Calculator-in-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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Profit &#038; Loss Calculator in JavaScript","datePublished":"2024-03-01T10:31:00+00:00","dateModified":"2024-03-04T03:31:59+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/"},"wordCount":191,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Profit-Loss-Calculator-in-JavaScript.png","articleSection":["Vanilla JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/","url":"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/","name":"Profit & Loss Calculator in JavaScript &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Profit-Loss-Calculator-in-JavaScript.png","datePublished":"2024-03-01T10:31:00+00:00","dateModified":"2024-03-04T03:31:59+00:00","description":"Here is a free code snippet to create a Profit & Loss Calculator in JavaScript. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Profit-Loss-Calculator-in-JavaScript.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2024\/01\/Profit-Loss-Calculator-in-JavaScript.png","width":1280,"height":980,"caption":"Profit & Loss Calculator in JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/vanilla-javascript\/profit-loss-calculator-in-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Vanilla JavaScript","item":"https:\/\/codehim.com\/category\/vanilla-javascript\/"},{"@type":"ListItem","position":3,"name":"Profit &#038; Loss Calculator in 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":941,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/10428","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=10428"}],"version-history":[{"count":1,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/10428\/revisions"}],"predecessor-version":[{"id":11349,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/10428\/revisions\/11349"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/10437"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=10428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=10428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=10428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}