{"id":1925,"date":"2023-08-26T03:38:10","date_gmt":"2023-08-26T03:38:10","guid":{"rendered":"https:\/\/easycodingschool.com\/?p=1925"},"modified":"2023-08-26T03:38:10","modified_gmt":"2023-08-26T03:38:10","slug":"javascript-events-and-event-handling","status":"publish","type":"post","link":"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/","title":{"rendered":"Javascript Events and Event Handling"},"content":{"rendered":"<h3>Events<\/h3>\n<p>In web development, events are actions or occurrences that happen in the browser. Examples of events include clicking a button, submitting a form, pressing a key, resizing the browser window, etc. These events are generated by users or the browser itself.<\/p>\n<h3>Event Handling<\/h3>\n<p>Event handling is the process of defining specific actions or behaviors that should occur in response to a particular event. In other words, it&#8217;s how you make your web application respond to user interactions or other events.<\/p>\n<h3>Event Listeners<\/h3>\n<p>Event listeners are functions that &#8220;listen&#8221; for specific events on specific HTML elements and execute a given piece of code (a callback function) when that event occurs. Event listeners allow you to attach interactivity to your web pages.<\/p>\n<p>Here&#8217;s an example of attaching an event listener to a button element in JavaScript:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>const button = document.querySelector('#myButton');\r\n\r\nbutton.addEventListener('click', function() {\r\nalert('Button clicked!');\r\n});<\/code><\/pre>\n<\/div>\n<p>In this example, when the button with the ID <strong>myButton<\/strong> is clicked, the provided callback function will be executed, displaying an alert.<\/p>\n<h2>Event Propagation and Delegation:<\/h2>\n<h3>Event Propagation:<\/h3>\n<p>When an event occurs on an element in the DOM (Document Object Model), it doesn&#8217;t just affect that element. It goes through a process called event propagation, which involves <strong>two<\/strong> phases: <strong>capturing phase<\/strong> and <strong>bubbling phase<\/strong>.<\/p>\n<p><strong>Capturing Phase: <\/strong>The event starts from the root of the DOM and travels down to the target element. This is less commonly used in practice.<\/p>\n<p><strong>Bubbling Phase:<\/strong> After the event reaches the target element, it &#8220;bubbles&#8221; up through its parent elements all the way to the root of the DOM.<\/p>\n<h3>Event Delegation:<\/h3>\n<p>Event delegation is a technique that takes advantage of event propagation. Instead of attaching event listeners to individual elements, you attach a single event listener to a common ancestor of multiple elements you&#8217;re interested in. This way, you can respond to events on multiple elements using a single listener.<\/p>\n<p><strong>Benefits of event delegation:<\/strong><\/p>\n<ul>\n<li>Reduced memory consumption (since you&#8217;re not attaching listeners to every element).<\/li>\n<li>Dynamic handling of elements added to the DOM after the initial page load.<\/li>\n<li>Improved performance when dealing with large numbers of elements.<\/li>\n<\/ul>\n<p><strong>Here&#8217;s an example of event delegation:<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>const parentElement = document.querySelector('#parent');\r\n\r\nparentElement.addEventListener('click', function(event) {\r\nif (event.target.tagName === 'LI') {\r\nalert('List item clicked: ' + event.target.textContent);\r\n}\r\n});<\/code><\/pre>\n<\/div>\n<p>In this example, a click event listener is attached to the parent element. When a list item <strong>(LI)<\/strong> is clicked, the event bubbles up to the parent, and the callback function checks if the clicked element is an <strong>LI<\/strong> element. If so, it displays an alert.<\/p>\n<p>One More Example:<\/p>\n<p>Suppose we have an unordered list (ul) of items, and we want to highlight the clicked item when it&#8217;s selected.<\/p>\n<p><strong>HTML:<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>&lt;ul id=\"itemList\"&gt;\r\n&lt;li&gt;Item 1&lt;\/li&gt;\r\n&lt;li&gt;Item 2&lt;\/li&gt;\r\n&lt;li&gt;Item 3&lt;\/li&gt;\r\n&lt;li&gt;Item 4&lt;\/li&gt;\r\n&lt;\/ul&gt;\r\n<\/code><\/pre>\n<\/div>\n<p><strong>CSS:<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>li {\r\ncursor: pointer;\r\npadding: 10px;\r\n}\r\n\r\nli.active {\r\nbackground-color: yellow;\r\n}<\/code><\/pre>\n<\/div>\n<p><strong>JavaScript:<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>const itemList = document.getElementById('itemList');\r\n\r\n\/\/ Event delegation - attaching one listener to the parent ul\r\nitemList.addEventListener('click', function(event) {\r\n\/\/ Check if the clicked element is an li\r\nif (event.target.tagName === 'LI') {\r\n\/\/ Remove 'active' class from all li elements\r\nconst items = itemList.getElementsByTagName('li');\r\nfor (let item of items) {\r\nitem.classList.remove('active');\r\n}\r\n\r\n\/\/ Add 'active' class to the clicked li\r\nevent.target.classList.add('active');\r\n}\r\n});<\/code><\/pre>\n<\/div>\n<p>In this example, we use event delegation to handle the click events for all list items. When a list item is clicked, the event bubbles up to the parent ul element, and we use the event object&#8217;s target property to determine which list item was clicked. We then remove the &#8216;<strong>active<\/strong>&#8216; class from all list items and add it to the clicked item, which changes its background color.<\/p>\n<p><strong>The key takeaways from this example are:<\/strong><\/p>\n<ul>\n<li>We attach a single event listener to the parent ul element using addEventListener.<\/li>\n<li>We use event delegation to handle clicks on individual list items.<\/li>\n<li>By toggling the &#8216;active&#8217; class, we visually highlight the clicked item.<\/li>\n<\/ul>\n<p>Understanding events, event handling, event propagation, and event delegation is crucial for building interactive and responsive web applications. These concepts allow you to create engaging user experiences and make your applications more user-friendly.<\/p>\n<p><span>You can also discover a lot about\u00a0<\/span><a href=\"https:\/\/easycodingschool.com\/blog\/category\/javascript\/\">Javascript by exploring<span>\u00a0<\/span><\/a><span>different topics.<\/span><\/p>\n<p><strong>Note:<\/strong><span>\u00a0We welcome your feedback at\u00a0<\/span><a href=\"https:\/\/easycodingschool.com\/blog\/\">Easy coding School<\/a><span>. Please don\u2019t hesitate to share your\u00a0<\/span><a href=\"https:\/\/easycodingschool.com\/blog\/contact\/\" target=\"_blank\" rel=\"noopener\">suggestions<\/a><span>\u00a0or any issues you might have with the article!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Master JavaScript Events: Create interactivity with event handling. Learn listeners, propagation, and delegation.<\/p>\n","protected":false},"author":1,"featured_media":1928,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[87,61,25,5],"tags":[73,69,89,159,161,160,62,158,147],"class_list":["post-1925","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","category-javascript","category-programming","category-technology","tag-basicjavascipt","tag-core-javascript","tag-corejavascipt","tag-event-delegation","tag-event-handling","tag-event-listeners","tag-javascript","tag-javascript-events-and-event-handling","tag-javascript-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Javascript Events and Event Handling - Easy Coding School<\/title>\n<meta name=\"description\" content=\"Master JavaScript Events: Create interactivity with event handling. Learn listeners, propagation, and delegation.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Javascript Events and Event Handling - Easy Coding School\" \/>\n<meta property=\"og:description\" content=\"Master JavaScript Events: Create interactivity with event handling. Learn listeners, propagation, and delegation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/\" \/>\n<meta property=\"og:site_name\" content=\"Easy Coding School\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-26T03:38:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Events-and-Event-Handling.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"660\" \/>\n\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"gauravkumarjha19@gmail.com\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"gauravkumarjha19@gmail.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/\"},\"author\":{\"name\":\"gauravkumarjha19@gmail.com\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b\"},\"headline\":\"Javascript Events and Event Handling\",\"datePublished\":\"2023-08-26T03:38:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/\"},\"wordCount\":609,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Events-and-Event-Handling.jpg\",\"keywords\":[\"Basicjavascipt\",\"Core Javascript\",\"CoreJavascipt\",\"Event Delegation\",\"Event Handling\",\"Event Listeners\",\"JavaScript\",\"Javascript Events and Event Handling\",\"Javascript Tutorial\"],\"articleSection\":[\"Development\",\"JavaScript\",\"Programming\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/\",\"url\":\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/\",\"name\":\"Javascript Events and Event Handling - Easy Coding School\",\"isPartOf\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Events-and-Event-Handling.jpg\",\"datePublished\":\"2023-08-26T03:38:10+00:00\",\"description\":\"Master JavaScript Events: Create interactivity with event handling. Learn listeners, propagation, and delegation.\",\"breadcrumb\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#primaryimage\",\"url\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Events-and-Event-Handling.jpg\",\"contentUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Events-and-Event-Handling.jpg\",\"width\":660,\"height\":350,\"caption\":\"Javascript Events and Event Handling\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/easycodingschool.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Javascript Events and Event Handling\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#website\",\"url\":\"https:\/\/easycodingschool.com\/blog\/\",\"name\":\"Easy Coding School\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/easycodingschool.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#organization\",\"name\":\"Easy Coding School\",\"url\":\"https:\/\/easycodingschool.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png\",\"contentUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png\",\"width\":310,\"height\":114,\"caption\":\"Easy Coding School \"},\"image\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b\",\"name\":\"gauravkumarjha19@gmail.com\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g\",\"caption\":\"gauravkumarjha19@gmail.com\"},\"sameAs\":[\"https:\/\/easycodingschool.com\/blog\"],\"url\":\"https:\/\/easycodingschool.com\/blog\/author\/gauravkumarjha19gmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Javascript Events and Event Handling - Easy Coding School","description":"Master JavaScript Events: Create interactivity with event handling. Learn listeners, propagation, and delegation.","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:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/","og_locale":"en_US","og_type":"article","og_title":"Javascript Events and Event Handling - Easy Coding School","og_description":"Master JavaScript Events: Create interactivity with event handling. Learn listeners, propagation, and delegation.","og_url":"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/","og_site_name":"Easy Coding School","article_published_time":"2023-08-26T03:38:10+00:00","og_image":[{"width":660,"height":350,"url":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Events-and-Event-Handling.jpg","type":"image\/jpeg"}],"author":"gauravkumarjha19@gmail.com","twitter_card":"summary_large_image","twitter_misc":{"Written by":"gauravkumarjha19@gmail.com","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#article","isPartOf":{"@id":"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/"},"author":{"name":"gauravkumarjha19@gmail.com","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b"},"headline":"Javascript Events and Event Handling","datePublished":"2023-08-26T03:38:10+00:00","mainEntityOfPage":{"@id":"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/"},"wordCount":609,"commentCount":0,"publisher":{"@id":"https:\/\/easycodingschool.com\/blog\/#organization"},"image":{"@id":"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#primaryimage"},"thumbnailUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Events-and-Event-Handling.jpg","keywords":["Basicjavascipt","Core Javascript","CoreJavascipt","Event Delegation","Event Handling","Event Listeners","JavaScript","Javascript Events and Event Handling","Javascript Tutorial"],"articleSection":["Development","JavaScript","Programming","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/","url":"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/","name":"Javascript Events and Event Handling - Easy Coding School","isPartOf":{"@id":"https:\/\/easycodingschool.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#primaryimage"},"image":{"@id":"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#primaryimage"},"thumbnailUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Events-and-Event-Handling.jpg","datePublished":"2023-08-26T03:38:10+00:00","description":"Master JavaScript Events: Create interactivity with event handling. Learn listeners, propagation, and delegation.","breadcrumb":{"@id":"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#primaryimage","url":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Events-and-Event-Handling.jpg","contentUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/08\/Javascript-Events-and-Event-Handling.jpg","width":660,"height":350,"caption":"Javascript Events and Event Handling"},{"@type":"BreadcrumbList","@id":"https:\/\/easycodingschool.com\/blog\/javascript-events-and-event-handling\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/easycodingschool.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Javascript Events and Event Handling"}]},{"@type":"WebSite","@id":"https:\/\/easycodingschool.com\/blog\/#website","url":"https:\/\/easycodingschool.com\/blog\/","name":"Easy Coding School","description":"","publisher":{"@id":"https:\/\/easycodingschool.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/easycodingschool.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/easycodingschool.com\/blog\/#organization","name":"Easy Coding School","url":"https:\/\/easycodingschool.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png","contentUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png","width":310,"height":114,"caption":"Easy Coding School "},"image":{"@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b","name":"gauravkumarjha19@gmail.com","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g","caption":"gauravkumarjha19@gmail.com"},"sameAs":["https:\/\/easycodingschool.com\/blog"],"url":"https:\/\/easycodingschool.com\/blog\/author\/gauravkumarjha19gmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts\/1925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1925"}],"version-history":[{"count":1,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts\/1925\/revisions"}],"predecessor-version":[{"id":1929,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts\/1925\/revisions\/1929"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/media\/1928"}],"wp:attachment":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}