

{"id":85238,"date":"2021-02-09T19:41:37","date_gmt":"2021-02-09T14:11:37","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=85238"},"modified":"2026-06-01T14:43:04","modified_gmt":"2026-06-01T09:13:04","slug":"flip-card-memory-game-in-javascript","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/","title":{"rendered":"Create Flip Card Memory Game in JavaScript"},"content":{"rendered":"<p>Learn how to develop flip card memory game in JavaScript. It is a simple and fun game. In this game project, you need to match the pair of images by flipping them.<\/p>\n<p>You all might have played the game because it is a super old and popular game. Now let\u2019s see how we can create this.<\/p>\n<h3>Project Prerequisites<\/h3>\n<p>To implement this project you need to know the following :<\/p>\n<ul>\n<li>Basic concepts of JavaScript<\/li>\n<li>HTML<\/li>\n<li>CSS<\/li>\n<\/ul>\n<h3>Download JavaScript Memory Game Source Code<\/h3>\n<p>Please download the source code of flip card memory game project: <a href=\"https:\/\/drive.google.com\/file\/d\/1bt6tBnxibnGgfJ9AXLZw_M-f3aajT4yX\/view?usp=drive_link\"><strong>Flip Card Memory Game Code<\/strong><\/a><\/p>\n<h3>Steps to Build the JavaScript Project<\/h3>\n<h4>1. Creating Html File &#8211; index.html<\/h4>\n<p>HTML provides the basic structure. So it is the very first step of this project. The Following code contains some basic HTML tags like div, h1, title, etc.<\/p>\n<p>We\u2019ve used some bootstrap buttons and classes to keep the designing part simple.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"en\"&gt;\r\n&lt;head&gt;\r\n    &lt;meta charset=\"UTF-8\"&gt;\r\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\r\n    &lt;link rel=\"stylesheet\" href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.5.0\/css\/bootstrap.min.css\" integrity=\"sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk\" crossorigin=\"anonymous\" 0=\"\"&gt;\r\n    &lt;title&gt;DataFlair Memory game&lt;\/title&gt;\r\n    \r\n    &lt;script src=\"static\/script.js\"&gt;&lt;\/script&gt;\r\n    &lt;style&gt;\r\n        .imgdiv{\r\n            position: relative;\r\n            display: inline-block;\r\n            width:150px;\r\n            height: 150px;\r\n            line-height: 150px;\r\n            font-size: 20px;\r\n            padding: 10px;\r\n            text-align: center;\r\n            border: 2px solid black;\r\n            cursor: pointer;\r\n        }\r\n        \r\n        img{\r\n            width:120px;\r\n            height: 120px;\r\n            padding: 10px;;\r\n        }\r\n \r\n        .hide{\r\n            padding: 10px;\r\n            visibility: hidden;\r\n        }\r\n \r\n        .match, .showimg{\r\n            visibility: visible !important;\r\n        }\r\n \r\n    &lt;\/style&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n    &lt;div class=\"container\"&gt;\r\n        &lt;h1 class =\"jumbotron\"&gt;DataFlair Memory game&lt;\/h1&gt;\r\n        &lt;button class=\"btn btn-success\" onclick=\"start()\"&gt;Start game&lt;\/button&gt;&lt;br&gt;&lt;br&gt;\r\n  &lt;div id=\"score\"&gt;&lt;\/div&gt;\r\n \r\n        &lt;div id=\"boardgame\"&gt;&lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n    \r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>We have used very simple HTML tags and for styling we have used very basic CSS and some bootstrap classes.<\/p>\n<p><strong>CSS<\/strong><\/p>\n<p>The important classes in CSS are \u2018.match\u2019, \u2018.hide\u2019 and \u2018.showimg\u2019. Here .hide class is added to all the images initially so that all the images are hidden and it hides the images using a simple CSS property \u2018visibility: hidden;\u2019.<br \/>\n.showimg and .match just override the hidden property and change it to visible with !importnant so that both the classes always override the hidden property, irrespective of their priority.<\/p>\n<h4>2. Creating JavaScript File &#8211; script.js<\/h4>\n<p>It is a good programming practice to create separate folders for different files therefore, our JS files will be in a static folder, so make sure you make one in your project folder.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">availableImages=['Images\/bean.jpg','Images\/doraemon.jpg','Images\/minion.jpg','Images\/mouse.jpg','Images\/noddy.jpg','Images\/popeye.jpg','Images\/scooby.jpg','Images\/shinchan.jpg','Images\/bean.jpg','Images\/doraemon.jpg','Images\/minion.jpg','Images\/mouse.jpg','Images\/noddy.jpg','Images\/popeye.jpg','Images\/scooby.jpg','Images\/shinchan.jpg']\r\n \r\nfunction start(){\r\n    let moves =0;\r\n    while (maindiv.firstChild) {\r\n        maindiv.removeChild(maindiv.lastChild);\r\n    }\r\n    const scorediv = document.getElementById(\"score\");\r\n    while (scorediv.firstChild) {\r\n       scorediv.removeChild(scorediv.lastChild);\r\n    }\r\n \r\n    var row = document.createElement('div')\r\n    ImagesCopy= JSON.parse(JSON.stringify( availableImages))\r\n    for(let j=1;j&lt;=16;j++){\r\n        var div = document.createElement('div');\r\n        div.setAttribute('class','imgdiv')\r\n        var image = document.createElement('img')\r\n        randomImg = ImagesCopy.splice(Math.floor(Math.random() * ImagesCopy.length),1);\r\n        image.setAttribute('src',randomImg);\r\n        image.setAttribute('class','hide')\r\n        div.appendChild(image)\r\n        row.appendChild(div);\r\n        \r\n        if(j%4==0){\r\n            document.getElementById('boardgame').append(row)\r\n            row = document.createElement('div')\r\n        }\r\n \r\n        div.addEventListener('click',function(event){\r\n            moves++;\r\n            let curr = event.currentTarget.children\r\n            let currImg = curr[0]\r\n           var currentlyshowing = document.getElementsByClassName('showimg');\r\n            currentlyshowing = document.getElementsByClassName('showimg');\r\n            let flag=0;\r\n            if(currentlyshowing.length &gt;= 1){\r\n                for(let i=0;i&lt;currentlyshowing.length;i++)\r\n                {\r\n                    if(currentlyshowing[i].src != currImg.src)\r\n                    currentlyshowing[i].classList.remove('showimg');\r\n                    else{\r\n                        currentlyshowing[i].classList.add('match');\r\n                        currImg.classList.add('match')\r\n                        flag=1;\r\n                    }\r\n                }\r\n            }\r\n \r\n            if(document.getElementsByClassName('match').length==16){\r\n                alert(\"You won !!! \")\r\n                let button = document.createElement('button');\r\n                button.setAttribute('class' , 'btn btn-warning');\r\n                let node= document.createTextNode(\"You won!!! Moves \"+moves);\r\n                button.appendChild(node)\r\n                document.getElementById('score').appendChild(button) \r\n            }\r\n \r\n            if(flag==0)\r\n            currImg.classList.add('showimg');\r\n        })\r\n    }\r\n}\r\n<\/pre>\n<p>Let\u2019s understand the code line by line<\/p>\n<ul>\n<li>In this file, we have first created a list that stores the path of all images.<\/li>\n<li>Then we have a function named \u2018start\u2019 which performs all major tasks, the first among them is creating a copy of availableImages, it is essential because if we perform all operations on the actual array then for the next game it would be already modified and won\u2019t function properly.<\/li>\n<li>Then we run a loop for all 16 images, and for each image, we create a new div in which we append the image with a class \u2018hide\u2019 so that all the images will be hidden initially.<\/li>\n<li>Now we need to assign one image per div, which we will pick randomly using Math.floor and Math.random from the ImagesCopy array.<\/li>\n<li>And after picking a particular image, we need to delete that particular image from the array (which is done using splice method) so that we don\u2019t pick the same image again.<\/li>\n<li>We just want four images in a row so when j%4==0 means when j is divisible by 4 we append row in the boardgame.<\/li>\n<li>As div is a block element it automatically changes the line.<\/li>\n<li>Now we need to show the image when it is clicked, so we will add an event Listener \u2018click\u2019 to the created div element.<\/li>\n<li>In the event listener, we count the number of \u2018showimg\u2019 and then we check whether the previously shown image matches the current image and if it does, we add a class \u2018match\u2019 to both the matched images and if it doesn\u2019t match, we add \u2018showimg\u2019 class and remove the showimg class from previously shown images.<\/li>\n<li>Now the only thing left is the \u2018game won\u2019 message, when all images are matched i.e. document.getElementsByClassName(&#8216;match&#8217;).length==16 , the user wins and to show it on the screen we will create a new element button in div.score which will display the message.<\/li>\n<li>Also we have added an alert message for the same.<\/li>\n<\/ul>\n<h3>Flip Card Memory Game in JavaScript &#8211; Output<\/h3>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/Play-memory-game.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-85712\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/Play-memory-game.png\" alt=\"Play memory game\" width=\"1366\" height=\"729\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/Play-memory-game.png 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/Play-memory-game-300x160.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/Play-memory-game-1024x546.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/Play-memory-game-150x80.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/Play-memory-game-768x410.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/Play-memory-game-720x384.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/Play-memory-game-520x278.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/Play-memory-game-320x171.png 320w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/won-memory-game.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-85713\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/won-memory-game.png\" alt=\"won memory game\" width=\"1366\" height=\"726\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/won-memory-game.png 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/won-memory-game-300x159.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/won-memory-game-1024x544.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/won-memory-game-150x80.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/won-memory-game-768x408.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/won-memory-game-720x383.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/won-memory-game-520x276.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/won-memory-game-320x170.png 320w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>We have successfully developed Flip Card Memory Game in JavaScript. This is a fairly simple tutorial so it should be easy to follow. If you face any issues you can comment it down.<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:2650,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1bt6tBnxibnGgfJ9AXLZw_M-f3aajT4yX\\\/view?usp=drive_link&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to develop flip card memory game in JavaScript. It is a simple and fun game. In this game project, you need to match the pair of images by flipping them. You all&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":85715,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18979],"tags":[],"class_list":["post-85238","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Create Flip Card Memory Game in JavaScript - DataFlair<\/title>\n<meta name=\"description\" content=\"Flip Card Memory Game in JavaScript - Develop a beginner level game project in JavaScript with simple html, css and js.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Flip Card Memory Game in JavaScript - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Flip Card Memory Game in JavaScript - Develop a beginner level game project in JavaScript with simple html, css and js.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-09T14:11:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T09:13:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/flip-card-memory-game-javascript.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create Flip Card Memory Game in JavaScript - DataFlair","description":"Flip Card Memory Game in JavaScript - Develop a beginner level game project in JavaScript with simple html, css and js.","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:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Create Flip Card Memory Game in JavaScript - DataFlair","og_description":"Flip Card Memory Game in JavaScript - Develop a beginner level game project in JavaScript with simple html, css and js.","og_url":"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2021-02-09T14:11:37+00:00","article_modified_time":"2026-06-01T09:13:04+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/flip-card-memory-game-javascript.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Create Flip Card Memory Game in JavaScript","datePublished":"2021-02-09T14:11:37+00:00","dateModified":"2026-06-01T09:13:04+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/"},"wordCount":667,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/flip-card-memory-game-javascript.jpg","articleSection":["JavaScript Tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/","url":"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/","name":"Create Flip Card Memory Game in JavaScript - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/flip-card-memory-game-javascript.jpg","datePublished":"2021-02-09T14:11:37+00:00","dateModified":"2026-06-01T09:13:04+00:00","description":"Flip Card Memory Game in JavaScript - Develop a beginner level game project in JavaScript with simple html, css and js.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/flip-card-memory-game-javascript.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/02\/flip-card-memory-game-javascript.jpg","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/flip-card-memory-game-in-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"JavaScript Tutorial","item":"https:\/\/data-flair.training\/blogs\/category\/javascript\/"},{"@type":"ListItem","position":3,"name":"Create Flip Card Memory Game in JavaScript"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/85238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=85238"}],"version-history":[{"count":6,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/85238\/revisions"}],"predecessor-version":[{"id":148746,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/85238\/revisions\/148746"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/85715"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=85238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=85238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=85238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}