{"id":9611,"date":"2024-01-10T18:06:00","date_gmt":"2024-01-10T18:06:00","guid":{"rendered":"https:\/\/codehim.com\/?p=9611"},"modified":"2024-01-22T16:06:59","modified_gmt":"2024-01-22T11:06:59","slug":"typing-test-project-in-javascript","status":"publish","type":"post","link":"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/","title":{"rendered":"Typing Test Project in JavaScript"},"content":{"rendered":"<p>This JavaScript project creates a web-based typing test. It allows you to check your typing speed and accuracy.It\u00a0works by measuring the time it takes to type a given text and comparing it with the original text.<\/p>\n<p>The core functionality includes starting a timer when you begin typing, comparing your input to the provided text, and displaying the time and accuracy.<\/p>\n<p>It&#8217;s helpful for those looking to improve their typing speed and accuracy by providing real-time feedback.<\/p>\n<h2>How to Create a Typing Test App in JavaScript<\/h2>\n<p>1. First create the HTML structure for the typing test app as follows. It sets up the structure of the typing test application. You can customize the title, header, and test text as per your preference.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;header class=\"masthead\"&gt;\r\n        &lt;h1&gt;Test Your Typing Speed&lt;\/h1&gt;\r\n    &lt;\/header&gt;\r\n    &lt;main class=\"main\"&gt;\r\n        &lt;article class=\"intro\"&gt;\r\n            &lt;p&gt;DO IT. DO IT NOW.&lt;\/p&gt;\r\n        &lt;\/article&gt;&lt;!-- .intro --&gt;\r\n        &lt;section class=\"test-area\"&gt;\r\n            &lt;div id=\"origin-text\"&gt;\r\n  &lt;p&gt;Why do they call me Mr. Happy?&lt;\/p&gt;\r\n            &lt;\/div&gt;&lt;!-- #origin-text --&gt;\r\n\r\n            &lt;div class=\"test-wrapper\"&gt;\r\n                &lt;textarea id=\"test-area\" name=\"textarea\" rows=\"6\" placeholder=\"The clock starts when you start typing.\"&gt;&lt;\/textarea&gt;\r\n            &lt;\/div&gt;&lt;!-- .test-wrapper --&gt;\r\n\r\n            &lt;div class=\"meta\"&gt;\r\n                &lt;section id=\"clock\"&gt;\r\n                    &lt;div class=\"timer\"&gt;00:00:00&lt;\/div&gt;\r\n                &lt;\/section&gt;\r\n\r\n                &lt;button id=\"reset\"&gt;Start over&lt;\/button&gt;\r\n            &lt;\/div&gt;&lt;!-- .meta --&gt;\r\n        &lt;\/section&gt;&lt;!-- .test-area --&gt;\r\n    &lt;\/main&gt;\r\n<\/pre>\n<p>2. The CSS code (style.css) is responsible for the visual styling of the application. Make sure to include it in the HTML file within the <code>&lt;head&gt;<\/code> section. You can modify the styles to match your design preferences.<\/p>\n<pre class=\"prettyprint linenums lang-css\">body,\r\nbutton,\r\ninput,\r\nselect,\r\ntextarea {\r\n\tfont-family: 'Source Sans Pro', 'Helvetica', Arial, sans-serif;\r\n\tfont-size: 18px;\r\n\tline-height: 1.5;\r\n}\r\n\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6 {\r\n\tclear: both;\r\n}\r\n\r\np {\r\n\tmargin-bottom: 1.5em;\r\n}\r\n\r\nb,\r\nstrong {\r\n\tfont-weight: bold;\r\n}\r\n\r\ndfn,\r\ncite,\r\nem,\r\ni {\r\n\tfont-style: italic;\r\n}\r\n\r\nblockquote {\r\n\tmargin: 0 1.5em;\r\n}\r\n\r\naddress {\r\n\tmargin: 0 0 1.5em;\r\n}\r\n\r\npre {\r\n\tbackground: #eee;\r\n\tfont-family: \"Courier 10 Pitch\", Courier, monospace;\r\n\tfont-size: 15px;\r\n\tfont-size: 1.5rem;\r\n\tline-height: 1.6;\r\n\tmargin-bottom: 1.6em;\r\n\tmax-width: 100%;\r\n\toverflow: auto;\r\n\tpadding: 1.6em;\r\n}\r\n\r\ncode,\r\nkbd,\r\ntt,\r\nvar {\r\n\tfont: 15px Monaco, Consolas, \"Andale Mono\", \"DejaVu Sans Mono\", monospace;\r\n}\r\n\r\nabbr,\r\nacronym {\r\n\tborder-bottom: 1px dotted #666;\r\n\tcursor: help;\r\n}\r\n\r\nmark,\r\nins {\r\n\tbackground: #fff9c0;\r\n\ttext-decoration: none;\r\n}\r\n\r\nsup,\r\nsub {\r\n\tfont-size: 75%;\r\n\theight: 0;\r\n\tline-height: 0;\r\n\tposition: relative;\r\n\tvertical-align: baseline;\r\n}\r\n\r\nsup {\r\n\tbottom: 1ex;\r\n}\r\n\r\nsub {\r\n\ttop: .5ex;\r\n}\r\n\r\nsmall {\r\n\tfont-size: 75%;\r\n}\r\n\r\nbig {\r\n\tfont-size: 125%;\r\n}\r\n\r\n\/*--------------------------------------------------------------\r\nLayout\r\n--------------------------------------------------------------*\/\r\nbody {\r\n    margin: 0;\r\n    padding: 0;\r\n}\r\n\r\n.masthead {\r\n    padding: 1em 2em;\r\n    background-color: #0D1B2E;\r\n    color: white;\r\n}\r\n\r\n.masthead h1 {\r\n    text-align: center;\r\n}\r\n\r\n.intro {\r\n    padding: 2em 2em;\r\n    color: #ffffff;\r\n    background: #429890;\r\n}\r\n\r\n\r\n.intro p,\r\n.test-area {\r\n    margin: 0 auto;\r\n    max-width: 550px;\r\n}\r\n\r\n.test-area {\r\n    margin-bottom: 4em;\r\n    padding: 0 2em;\r\n}\r\n\r\n.test-wrapper {\r\n    border: 10px solid grey;\r\n    border-radius: 10px;\r\n}\r\n\r\n#origin-text {\r\n    margin: 1em 0;\r\n    padding: 1em 1em 0;\r\n    background-color: #ededed;\r\n}\r\n\r\n#origin-text p {\r\n    margin: 0;\r\n    padding-bottom: 1em;\r\n}\r\n\r\n.test-wrapper {\r\n    display: flex;\r\n}\r\n\r\n.test-wrapper textarea {\r\n    flex: 1;\r\n}\r\n\r\n.meta {\r\n    margin-top: 1em;\r\n    display: flex;\r\n    justify-content: space-between;\r\n    flex-wrap: wrap;\r\n}\r\n\r\n.timer {\r\n    font-size: 3em;\r\n    font-weight: bold;\r\n}\r\n\r\n#reset {\r\n    padding: .5em 1em;\r\n    font-size: 1.2em;\r\n    font-weight: bold;\r\n    color: #E95D0F;\r\n    background: white ;\r\n    border: 10px solid #E95D0F;\r\n}\r\n\r\n#reset:hover {\r\n    color: white;\r\n    background-color: #E95D0F;\r\n}<\/pre>\n<p>3. Finally, add the following JavaScript code to your project. It\u00a0contains the logic for the typing test. It&#8217;s essential to understand how it works:<\/p>\n<pre class=\"prettyprint linenums lang-js\">const testWrapper = document.querySelector(\".test-wrapper\");\r\nconst testArea = document.querySelector(\"#test-area\");\r\nconst originText = document.querySelector(\"#origin-text p\").innerHTML;\r\nconst resetButton = document.querySelector(\"#reset\");\r\nconst theTimer = document.querySelector(\".timer\");\r\n\r\n\r\nvar timer = [0,0,0,0];\r\nvar interval;\r\nvar timerRunning = false;\r\n\r\n\/\/ Add leading zero to numbers 9 or below (purely for aesthetics):\r\nfunction leadingZero(time) {\r\n    \r\n    if (time &lt;= 9) {\r\n        \r\n        time = \"0\" + time;\r\n    }\r\n    \r\n    return time;\r\n}\r\n\r\n\/\/ Run a standard minute\/second\/hundredths timer:\r\nfunction runTimer() {\r\n    \r\n    let currentTime = leadingZero(timer[0]) + \":\" + leadingZero(timer[1]) + \":\" + leadingZero(timer[2]);\r\n    \r\n    theTimer.innerHTML = currentTime;\r\n    timer[3]++;\r\n    \r\n    timer[0] = Math.floor((timer[3]\/100)\/60);\r\n    timer[1] = Math.floor((timer[3]\/100) - (timer[0] * 60));\r\n    timer[2] = Math.floor(timer[3] - (timer[1] * 100) - (timer[0] * 6000));\r\n}\r\n\r\n\/\/ Match the text entered with the provided text on the page:\r\nfunction spellCheck() {\r\n    \r\n    let textEntered = testArea.value;\r\n    let originTextMatch = originText.substring(0, textEntered.length);\r\n    \r\n    if(textEntered == originText) {\r\n        \r\n        clearInterval(interval);\r\n        \r\n        testWrapper.style.borderColor = \"#339900\";\r\n        \r\n    } else {\r\n        \r\n        if(textEntered  == originTextMatch) {\r\n            \r\n            testWrapper.style.borderColor = \"#E55400\";\r\n        } else {\r\n            \r\n            testWrapper.style.borderColor = \"#FF0000\";\r\n        }\r\n    }\r\n    \r\n}\r\n\r\n\/\/ Start the timer:\r\nfunction start() {\r\n    \r\n    let textEnteredLength = testArea.value.length;\r\n    \r\n    if (textEnteredLength === 0 &amp;&amp; !timerRunning ){\r\n        \r\n        timerRunning = true;\r\n        interval = setInterval(runTimer, 10);\r\n    }\r\n    \r\n    console.log(textEnteredLength);\r\n}\r\n\r\n\/\/ Reset everything:\r\nfunction reset() {\r\n    \r\n    clearInterval(interval);\r\n    interval = null;\r\n    \r\n    timer = [0,0,0,0];\r\n    timerRunning = false;\r\n    \r\n    testArea.value = \"\";\r\n    theTimer.innerHTML = \"00:00:00\";\r\n    testWrapper.style.borderColor = \"grey\";\r\n}\r\n\r\n\r\n\/\/ Event listeners for keyboard input and the reset button:\r\ntestArea.addEventListener(\"keypress\", start, false);\r\ntestArea.addEventListener(\"keyup\", spellCheck, false );\r\nresetButton.addEventListener(\"click\", reset, false);<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully created a Typing test Project in JavaScript. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript project creates a web-based typing test. It allows you to check your typing speed and accuracy.It\u00a0works by measuring&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9632,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[97],"tags":[227],"class_list":["post-9611","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-text-input","tag-typing-effect"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Typing Test Project in JavaScript &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Typing Test Project 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\/text-input\/typing-test-project-in-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Typing Test Project in JavaScript &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Typing Test Project in JavaScript. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/text-input\/typing-test-project-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-01-10T18:06:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T11:06:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Typing-Test-Project-in-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\/typing-test-project-in-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Typing Test Project in JavaScript\",\"datePublished\":\"2024-01-10T18:06:00+00:00\",\"dateModified\":\"2024-01-22T11:06:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/\"},\"wordCount\":215,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Typing-Test-Project-in-JavaScript.png\",\"keywords\":[\"Typing Effect\"],\"articleSection\":[\"Text &amp; Input\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/\",\"url\":\"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/\",\"name\":\"Typing Test Project in JavaScript &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Typing-Test-Project-in-JavaScript.png\",\"datePublished\":\"2024-01-10T18:06:00+00:00\",\"dateModified\":\"2024-01-22T11:06:59+00:00\",\"description\":\"Here is a free code snippet to create a Typing Test Project in JavaScript. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Typing-Test-Project-in-JavaScript.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Typing-Test-Project-in-JavaScript.png\",\"width\":1280,\"height\":960,\"caption\":\"Typing Test Project in JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/text-input\/typing-test-project-in-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\":\"Typing Test Project 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":"Typing Test Project in JavaScript &#8212; CodeHim","description":"Here is a free code snippet to create a Typing Test Project 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\/text-input\/typing-test-project-in-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Typing Test Project in JavaScript &#8212; CodeHim","og_description":"Here is a free code snippet to create a Typing Test Project in JavaScript. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-10T18:06:00+00:00","article_modified_time":"2024-01-22T11:06:59+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Typing-Test-Project-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":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Typing Test Project in JavaScript","datePublished":"2024-01-10T18:06:00+00:00","dateModified":"2024-01-22T11:06:59+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/"},"wordCount":215,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Typing-Test-Project-in-JavaScript.png","keywords":["Typing Effect"],"articleSection":["Text &amp; Input"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/","url":"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/","name":"Typing Test Project in JavaScript &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Typing-Test-Project-in-JavaScript.png","datePublished":"2024-01-10T18:06:00+00:00","dateModified":"2024-01-22T11:06:59+00:00","description":"Here is a free code snippet to create a Typing Test Project in JavaScript. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/text-input\/typing-test-project-in-javascript\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Typing-Test-Project-in-JavaScript.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/11\/Typing-Test-Project-in-JavaScript.png","width":1280,"height":960,"caption":"Typing Test Project in JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/text-input\/typing-test-project-in-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":"Typing Test Project 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":957,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9611","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=9611"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/9611\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/9632"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=9611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=9611"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=9611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}