{"id":12523,"date":"2020-05-06T14:31:30","date_gmt":"2020-05-06T21:31:30","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=12523"},"modified":"2023-12-01T02:44:19","modified_gmt":"2023-12-01T10:44:19","slug":"javascript-find","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/javascript-find\/","title":{"rendered":"JavaScript Find: A Step-By-Step Guide"},"content":{"rendered":"\n<p><em>The JavaScript <code>find()<\/code> function returns the first element in a list that meets a given requirement. The function is useful for finding specific values in an array.<\/em><\/p>\n\n\n\n<p>When working with JavaScript, you may want to retrieve a specific value from an array. That\u2019s where the JavaScript <code>find()<\/code> function comes in. This function searches through an array and returns the first element that meets a certain criterion.&nbsp;<\/p>\n\n\n\n<p>In this tutorial, we will discuss the basics of arrays in JavaScript. Then we\u2019ll explore how you can use the JavaScript <code>find()<\/code> function to get the value of the first item that meets a certain condition in an array.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript Array Refresher<\/h2>\n\n\n\n<p>Arrays are ordered lists of items that are used to store data. Arrays can contain zero or more items and are useful if you want to store multiple common values in a single variable. For example, you could use an array to store a list of shipments received at a warehouse or a list of books sold at a bookshop.<br><\/p>\n\n\n\n<p>Arrays can contain any data type, including numbers, objects, and strings. In JavaScript, arrays are declared as a list of comma-separated values and are enclosed within square brackets. Here\u2019s an example of an array that stores a list of colors in JavaScript:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var colors = ['Red', 'Orange', 'Yellow', 'Green'];<\/pre><\/div>\n\n\n\n<p>The above variable (<code>colors<\/code>) was assigned an array of colors. Our <code>colors<\/code> array contains four values. Having declared this array, we can retrieve individual items from it.<br><\/p>\n\n\n\n<p>In JavaScript, items in an array are assigned an index value, starting with <code>0<\/code>. We can use these index values to retrieve an item or set of items. Here are the index values that JavaScript automatically assigns to items in the array we declared above:<br><\/p>\n\n\n\n<figure class=\"wp-block-table course-info-table\"><table><tbody><tr><td>Red<\/td><td>Orange<\/td><td>Yellow<\/td><td>Green<\/td><\/tr><tr><td>0<\/td><td>1<\/td><td>2<\/td><td>3<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Now, if we want to retrieve the value <code>Orange<\/code> from our array, we can do so by referencing its index number. Here\u2019s the code we would use to do this:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>console.log(colors[1]);<\/pre><\/div>\n\n\n\n<p>Our code returns:&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Orange <\/pre><\/div>\n\n\n\n<p>As you can see, our program returned the value at the index position <code>1<\/code> in our array.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript Find<\/h2>\n\n\n\n<p>You can use the JavaScript <code>find()<\/code> method to locate a specific value within an array. The program will return the first item that meets the criterion you define. If more than one item meets that criterion, the program will return only the first item.<br><\/p>\n\n\n\n<p>The <code>find()<\/code> method takes in three arguments:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>element: what the <code>find()<\/code> function processes&nbsp;<\/li>\n\n\n\n<li>index: the index value of the item that the <code>find()<\/code> function processes<\/li>\n\n\n\n<li>array: the array on which the <code>find()<\/code> function is executed<\/li>\n<\/ul>\n\n\n\n<p>Here\u2019s the syntax for the <code>find()<\/code> method:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>array.find(function(element), index);<\/pre><\/div>\n\n\n\n<p>If the value you are searching for is not found within the array you specify, the <code>find()<\/code> method will return: <code>undefined<\/code>.<br><\/p>\n\n\n\n<p>Let\u2019s use an example to explain how the <code>find()<\/code> method works in JavaScript. Let\u2019s say that we are the owners of a bakery, and we want to check whether or not our product listing includes brownies, which we just started baking. We could use the following code to perform this action:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var products = ['Coffee Cake', 'Custard Slice', 'Millionaire Shortcake', 'Apple Pie', 'Carrot Cake', 'Brownie'];\nvar check_for_brownies = products.find(function(product) {\nreturn product === 'Brownie';\n});\nconsole.log(check_for_brownies);<\/pre><\/div>\n\n\n\n<p>Our program returns the following: <code>Brownie<\/code>.<br><\/p>\n\n\n\n<p>There\u2019s a lot going on in our code, so let\u2019s break it down. On the first line, we declare an array called <code>products<\/code>, which stores six different products offered by our bakery.<br><\/p>\n\n\n\n<p>On the next line, we use the <code>find()<\/code> method to check whether our array contains <code>Brownie<\/code>. We do so by creating a function within the <code>find()<\/code> method that checks for whether each product is equal to <code>Brownie<\/code> (<code>return product === \u2018Brownie\u2019<\/code> is the code we use above).<br><\/p>\n\n\n\n<p>Then, on the final line, we print out our <code>check_for_brownies<\/code> variable to see whether our program identified the word <code>Brownie<\/code> in our array. Because <code>Brownie<\/code> was in our <code>products<\/code> array and we satisfied the condition, our program returns the value.&nbsp;<br><\/p>\n\n\n\n<p>In addition, we can use a <a href=\"https:\/\/careerkarma.com\/blog\/javascript-arrow-function\">JavaScript arrow function<\/a> to make our code more efficient. Here\u2019s an example of an arrow function that performs the same action as above but in fewer lines of code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var products = ['Coffee Cake', 'Custard Slice', 'Millionaire Shortcake', 'Apple Pie', 'Carrot Cake', 'Brownie'];\nvar check_for_brownies = products.find(function(product) {\n\treturn product === 'Brownie';\n});\nconsole.log(check_for_brownies);\n<\/pre><\/div>\n\n\n\n<p>Our find() method returns: <code>Brownie<\/code>.<code><br><\/code><\/p>\n\n\n\n<p>In addition, we can use the <code>find()<\/code> function to search for an item in a list of numbers.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript Find Object in Array<\/h2>\n\n\n\n<p>In the above example, we used <code>find()<\/code> to determine whether our bakery product listings included <code>Brownie<\/code>. The array we were searching through was a simple list of strings.&nbsp;<br><\/p>\n\n\n\n<p>But what if you want to search through an array of objects? You can use the <code>find()<\/code> method to do this, too. Let\u2019s say that you have a list of product names and prices stored as an array of objects, and you want to search this list. Specifically, you are looking to see whether <code>Apple Pie<\/code> is in the array of objects.<br><\/p>\n\n\n\n<p>You could use the following code to check if <code>Apple Pie<\/code> appears in your list:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var products = [\n\t{ name: 'Coffee Cake', price: 2.50 },\n\t{ name: 'Apple Pie', price: 2.25 },\n{ name: 'Brownie', price: 1.75 }\n];\nvar check_for_apple_pie = products.find(product =&gt; product.name === \"Apple Pie\");\nconsole.log(check_for_apple_pie);\n<\/pre><\/div>\n\n\n\n<p>Our code returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>{ name: 'Apple Pie', price: 2.25 }<\/pre><\/div>\n\n\n\n<p>As you can see, our program searched through our list of objects and returned the one with the product name equal to <code>Apple Pie<\/code>. This code works in the same way as it did in our previous example where we searched for brownies; the main difference is that instead of searching through an array of strings, we searched through an array of objects.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>You can use the JavaScript <code>find()<\/code> function to determine whether an array contains a particular value. If the array does contain the value for which you are searching, your program will return the first instance of that value; if the array does not contain the value, your program will return a null value.<br><\/p>\n\n\n\n<p>In this tutorial, we explored the basics of arrays in JavaScript, and we discussed how to use the <code>find()<\/code> method to determine whether an array contains a specific value. We also discussed how to use the <code>find()<\/code> method with an array of objects.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to start using the JavaScript <code>find()<\/code> method like an expert!<br><\/p>\n","protected":false},"excerpt":{"rendered":"The JavaScript find() function returns the first element in a list that meets a given requirement. The function is useful for finding specific values in an array. When working with JavaScript, you may want to retrieve a specific value from an array. That\u2019s where the JavaScript find() function comes in. This function searches through an&hellip;","protected":false},"author":240,"featured_media":12524,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11933],"tags":[],"class_list":{"0":"post-12523","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-javascript"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"JavaScript","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":"","is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>JavaScript Find: A Step-By-Step Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"Programmers use the JavaScript find method to locate and retrieve a specific value in an array. Learn about how to use the JavaScript find method on Career Karma.\" \/>\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-find\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Find: A Step-By-Step Guide\" \/>\n<meta property=\"og:description\" content=\"Programmers use the JavaScript find method to locate and retrieve a specific value in an array. Learn about how to use the JavaScript find method on Career Karma.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/javascript-find\/\" \/>\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-05-06T21:31:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T10:44:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/coffee-writing-computer-blogging-34600.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"667\" \/>\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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-find\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-find\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"JavaScript Find: A Step-By-Step Guide\",\"datePublished\":\"2020-05-06T21:31:30+00:00\",\"dateModified\":\"2023-12-01T10:44:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-find\\\/\"},\"wordCount\":941,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-find\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/coffee-writing-computer-blogging-34600.jpg\",\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-find\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-find\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-find\\\/\",\"name\":\"JavaScript Find: A Step-By-Step Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-find\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-find\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/coffee-writing-computer-blogging-34600.jpg\",\"datePublished\":\"2020-05-06T21:31:30+00:00\",\"dateModified\":\"2023-12-01T10:44:19+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"Programmers use the JavaScript find method to locate and retrieve a specific value in an array. Learn about how to use the JavaScript find method on Career Karma.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-find\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-find\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-find\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/coffee-writing-computer-blogging-34600.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/coffee-writing-computer-blogging-34600.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-find\\\/#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 Find: A Step-By-Step Guide\"}]},{\"@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\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"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 Find: A Step-By-Step Guide | Career Karma","description":"Programmers use the JavaScript find method to locate and retrieve a specific value in an array. Learn about how to use the JavaScript find method on Career Karma.","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-find\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Find: A Step-By-Step Guide","og_description":"Programmers use the JavaScript find method to locate and retrieve a specific value in an array. Learn about how to use the JavaScript find method on Career Karma.","og_url":"https:\/\/careerkarma.com\/blog\/javascript-find\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-05-06T21:31:30+00:00","article_modified_time":"2023-12-01T10:44:19+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/coffee-writing-computer-blogging-34600.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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/javascript-find\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-find\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"JavaScript Find: A Step-By-Step Guide","datePublished":"2020-05-06T21:31:30+00:00","dateModified":"2023-12-01T10:44:19+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-find\/"},"wordCount":941,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-find\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/coffee-writing-computer-blogging-34600.jpg","articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/javascript-find\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/javascript-find\/","url":"https:\/\/careerkarma.com\/blog\/javascript-find\/","name":"JavaScript Find: A Step-By-Step Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-find\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-find\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/coffee-writing-computer-blogging-34600.jpg","datePublished":"2020-05-06T21:31:30+00:00","dateModified":"2023-12-01T10:44:19+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"Programmers use the JavaScript find method to locate and retrieve a specific value in an array. Learn about how to use the JavaScript find method on Career Karma.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-find\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/javascript-find\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/javascript-find\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/coffee-writing-computer-blogging-34600.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/coffee-writing-computer-blogging-34600.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/javascript-find\/#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 Find: A Step-By-Step Guide"}]},{"@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\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","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\/12523","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=12523"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12523\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/12524"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=12523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=12523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=12523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}