{"id":11909,"date":"2020-10-29T01:16:30","date_gmt":"2020-10-29T08:16:30","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=11909"},"modified":"2023-12-01T04:03:28","modified_gmt":"2023-12-01T12:03:28","slug":"javascript-splice","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/javascript-splice\/","title":{"rendered":"JavaScript Splice: How to Use It"},"content":{"rendered":"\n<p><em>The JavaScript splice() method modifies an array. It is used to add new elements to an array or remove or change existing ones. splice() changes the array on which it is used. It does not create a new array.<\/em><\/p>\n\n\n\n<p>It\u2019s common to want to add or remove items from a list of existing elements. For example, say you have a program that returns information about employees. One employee is on leave. You may want to remove them from your program temporarily.<\/p>\n\n\n\n<p>You can use splice() to add items to, remove items from, or modify items in an array. This method allows you to add or remove items from an array. In this tutorial, we\u2019ll demonstrate how the splice() method works and how to use it in your JavaScript code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Array Refresher<\/strong><\/h2>\n\n\n\n<p>The contents of an array can include numbers, strings, and Booleans. In JavaScript, <a href=\"https:\/\/careerkarma.com\/blog\/javascript-array\/\">you can use an array<\/a> to store multiple pieces of information instead of storing data in multiple variables. For example, if you have a class of ten students, you can create an array to list each of their names.<\/p>\n\n\n\n<p>Arrays can be accessed using their index numbers, which begin at 0. Here&#8217;s an example array:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>let arr = [\u201cexample\u201d, \u201carray\u201d, \u201cof\u201d, \u201cstrings\u201d]<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>JavaScript splice()<\/strong><\/h2>\n\n\n\n<p>The JavaScript splice() method adds, changes, or removes an item from an array. splice() modifies an existing array.<\/p>\n\n\n\n<p>Let&#8217;s take a look at the syntax for splice():<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>list_name.splice(index_to_add_or_remove, items_to_remove, items_to_add...) <\/pre><\/div>\n\n\n\n<p>splice() accepts three parameters:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The index number to start at (required)<\/li><li>The number of items in the array you want to remove (optional)<\/li><li>Items to add to the list (optional)<\/li><\/ul>\n\n\n\n<p>You can add multiple items to a list using splice. To do so, you must specify all the items you want to add as the final parameters.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">splice() JavaScript: Delete From Array<\/h3>\n\n\n\n<p>We have a list of student names. Paul has moved to another school and. We want to remove him from our list of names. Here\u2019s an example of splice() removing a name from our array:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var students = [\u201cAlex\u201d, \u201cFred\u201d, \u201cMolly\u201d, \u201cPaul\u201d]\nstudents.splice(3, 1);\nconsole.log(students);\n<\/pre><\/div>\n\n\n\n<p>After running our code, we\u2019ll get the following output:<\/p>\n\n\n\n<p>[\u201cAlex\u201d, \u201cFred\u201d, \u201cMolly\u201d]<\/p>\n\n\n\n<p>We deleted the element starting with the index \u201c3.\u201d In this case, the <a href=\"https:\/\/careerkarma.com\/blog\/javascript-string-contains\/\">JavaScript string<\/a> we removed was \u201cPaul.\u201d<\/p>\n\n\n\n<p>If we were to remove the second argument from our code, all items after the index \u201c3\u201d would have been removed as well.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">splice() JavaScript: Add to Array<\/h3>\n\n\n\n<p>If we wanted to add another student to our array, we can also use splice(). If we add a third parameter, we could specify what should be added to the array. Here\u2019s an example:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var students = [\u201cAlex\u201d, \u201cFred\u201d, \u201cMolly\u201d, \u201cPaul\u201d]\nstudents.splice(4, 0, \u201cHannah\u201d);\nconsole.log(students);\n<\/pre><\/div>\n\n\n\n<p>The output for this code is as follows:<\/p>\n\n\n\n<p>[\u201cAlex\u201d, \u201cFred\u201d, \u201cMolly\u201d, \u201cPaul\u201d, \u201cHannah\u201d]<\/p>\n\n\n\n<p>The new string \u201cHannah\u201d was added to the end of the array, at the index position \u201c4.\u201d Notice that our second parameter was set to 0 because we are not removing any items from our array. Splice makes adding new elements to an array easy.<\/p>\n\n\n\n<p>We could add multiple names by including additional parameters in our code:<\/p>\n\n\n\n<p>var students = [\u201cAlex\u201d, \u201cFred\u201d, \u201cMolly\u201d, \u201cPaul\u201d]<\/p>\n\n\n\n<p>students.splice(4, 0, \u201cHannah\u201d, &#8220;Lily&#8221;);<\/p>\n\n\n\n<p>console.log(students);<\/p>\n\n\n\n<p>This code adds both &#8220;Hannah&#8221; and &#8220;Lily&#8221; to our list.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">splice() JavaScript: Add to and Remove from Array<\/h3>\n\n\n\n<p>If we want to add and remove items to an array at the same time, we can also use splice(). Here\u2019s an example of this in action:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var students = [\u201cAlex\u201d, \u201cFred\u201d, \u201cMolly\u201d, \u201cPaul\u201d]\nstudents.splice(4, 0, \u201cHannah\u201d);\nconsole.log(students);\n<\/pre><\/div>\n\n\n\n<p>The output from this code is as follows:<\/p>\n\n\n\n<p>[\u201cAlex\u201d, \u201cFred\u201d, \u201cHannah\u201d, \u201cPaul\u201d]<\/p>\n\n\n\n<p>Our code has removed the item in the array with the index value of \u201c2,\u201d which was \u201cMolly.\u201d Then, our code added \u201cHannah\u201d at the index position of \u201c2.\u201d<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>JavaScript Splice vs. Slice<\/strong><\/h2>\n\n\n\n<p>Some developers get confused between the JavaScript slice() and splice() methods because slice() can also be used to remove elements from an array. However, there are a few differences between these two methods.<\/p>\n\n\n\n<p>Firstly, slice() doesn\u2019t change the original array, whereas (as seen above) splice <em>does<\/em> change the original array. In addition, splice() returns the new array with all the changes we made, whereas splice() only returns the removed item.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>splice() adds items to, removes items from, or changes items in an existing array. You can add or remove as many items to an array as you would like using splice().<\/p>\n\n\n\n<p>That\u2019s all you need to know about splice() in JavaScript. In short, if you are looking to add or remove an element from JavaScript arrays, splice() can be a useful function to know.<\/p>\n\n\n\n<p>To learn more about JavaScript, read our guide on the <a href=\"https:\/\/careerkarma.com\/blog\/tutorial-for-javascript-beginners\/\">best tutorials for JavaScript beginners<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"The JavaScript splice() method modifies an array. It is used to add new elements to an array or remove or change existing ones. splice() changes the array on which it is used. It does not create a new array. It\u2019s common to want to add or remove items from a list of existing elements. For&hellip;","protected":false},"author":240,"featured_media":12336,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11933],"tags":[12687],"class_list":{"0":"post-11909","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-javascript","8":"tag-tutorial"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"JavaScript","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>JavaScript Splice: How to Use It: The Complete Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"In JavaScript, it\u2019s common to want to add new objects to an array, or remove existing ones. Learn more about the JavaScript splice function in this article.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/javascript-splice\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Splice: How to Use It\" \/>\n<meta property=\"og:description\" content=\"In JavaScript, it\u2019s common to want to add new objects to an array, or remove existing ones. Learn more about the JavaScript splice function in this article.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/javascript-splice\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-29T08:16:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:03:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-splice-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\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:\/\/careerkarma.com\/blog\/javascript-splice\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-splice\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"JavaScript Splice: How to Use It\",\"datePublished\":\"2020-10-29T08:16:30+00:00\",\"dateModified\":\"2023-12-01T12:03:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-splice\/\"},\"wordCount\":750,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-splice\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-splice-1.jpg\",\"keywords\":[\"tutorial\"],\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/javascript-splice\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-splice\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/javascript-splice\/\",\"name\":\"JavaScript Splice: How to Use It: The Complete Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-splice\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-splice\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-splice-1.jpg\",\"datePublished\":\"2020-10-29T08:16:30+00:00\",\"dateModified\":\"2023-12-01T12:03:28+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"In JavaScript, it\u2019s common to want to add new objects to an array, or remove existing ones. Learn more about the JavaScript splice function in this article.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-splice\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/javascript-splice\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-splice\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-splice-1.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-splice-1.jpg\",\"width\":1200,\"height\":675},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-splice\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript\",\"item\":\"https:\/\/careerkarma.com\/blog\/javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript Splice: How to Use It\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"JavaScript Splice: How to Use It: The Complete Guide | Career Karma","description":"In JavaScript, it\u2019s common to want to add new objects to an array, or remove existing ones. Learn more about the JavaScript splice function in this article.","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:\/\/careerkarma.com\/blog\/javascript-splice\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Splice: How to Use It","og_description":"In JavaScript, it\u2019s common to want to add new objects to an array, or remove existing ones. Learn more about the JavaScript splice function in this article.","og_url":"https:\/\/careerkarma.com\/blog\/javascript-splice\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-10-29T08:16:30+00:00","article_modified_time":"2023-12-01T12:03:28+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-splice-1.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/javascript-splice\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-splice\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"JavaScript Splice: How to Use It","datePublished":"2020-10-29T08:16:30+00:00","dateModified":"2023-12-01T12:03:28+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-splice\/"},"wordCount":750,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-splice\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-splice-1.jpg","keywords":["tutorial"],"articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/javascript-splice\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/javascript-splice\/","url":"https:\/\/careerkarma.com\/blog\/javascript-splice\/","name":"JavaScript Splice: How to Use It: The Complete Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-splice\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-splice\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-splice-1.jpg","datePublished":"2020-10-29T08:16:30+00:00","dateModified":"2023-12-01T12:03:28+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"In JavaScript, it\u2019s common to want to add new objects to an array, or remove existing ones. Learn more about the JavaScript splice function in this article.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-splice\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/javascript-splice\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/javascript-splice\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-splice-1.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/javascript-splice-1.jpg","width":1200,"height":675},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/javascript-splice\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"JavaScript","item":"https:\/\/careerkarma.com\/blog\/javascript\/"},{"@type":"ListItem","position":3,"name":"JavaScript Splice: How to Use It"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/11909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=11909"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/11909\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/12336"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=11909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=11909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=11909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}