{"id":18104,"date":"2020-11-17T00:01:49","date_gmt":"2020-11-17T08:01:49","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=18104"},"modified":"2023-12-01T04:04:07","modified_gmt":"2023-12-01T12:04:07","slug":"javascript-object-keys","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/javascript-object-keys\/","title":{"rendered":"JavaScript Object.keys(): A Guide"},"content":{"rendered":"\n<p><em>The JavaScript Object.keys() method retrieves the keys in an Object and returns a list that contains those keys. The order of the keys in the final list is the order they appear in the original Object.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>JavaScript (JS) Objects consist of two main parts: keys and values.<\/p>\n\n\n\n<p>When working with an Object, you may want to retrieve a list of the keys associated with it. That\u2019s where the JavaScript <em>Object.keys()<\/em> method comes in. This method allows you to generate a list of all the property names in an Object.<\/p>\n\n\n\n<p>Using examples, this tutorial will discuss how to use the <em>Object.keys()<\/em> method to return a list of keys stored in an Object. We&#8217;ll also quickly discuss the structure of JavaScript Objects.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript Objects: A Refresher<\/h2>\n\n\n\n<p>Objects (with a capital \u201cO\u201d) are the mapping data type in JavaScript. They map keys to values. The values stored by an Object can include strings, numbers, Booleans, and other data types. Here is an example of an Object in JavaScript:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>const job_description = {\n\tposition: &quot;Sales Assistant&quot;,\n\tfloor_worker: true,\n\thours_per_week: 38\n};<\/pre><\/div>\n\n\n\n<p>The words to the left of the colons (:) are the <strong>keys<\/strong> in our dictionary. Words to the right of the colons are the <strong>values<\/strong>.&nbsp;You can think of JavaScript Objects as the equivalent of a Python dictionary, but in JavaScript.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript Object.keys()<\/h2>\n\n\n\n<p>The JavaScript Object.keys() method returns the keys inside a JavaScript Object, or a JSON Object. These keys are stored in the order they appear in the Object.<\/p>\n\n\n\n<p>The syntax for the <em>Object.keys()<\/em> method is:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Object.keys(object_name)<\/pre><\/div>\n\n\n\n<p>The <em>Object.keys()<\/em> method accepts one parameter: the name of the Object whose keys you want to retrieve. This method returns the names of all keys in the Object you have specified, stored as a JavaScript list.<\/p>\n\n\n\n<p>Notice that the method itself is called Object.keys(). This is because keys() is a method of Object. You must specify the Object whose keys you want to retrieve as a parameter of Object.keys(). You cannot append keys() to any Object because that Object will not have access to the keys() method.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Object.keys() JavaScript Example<\/h2>\n\n\n\n<p>Let\u2019s walk you through an example to illustrate how this method works.<\/p>\n\n\n\n<p>Earlier, we created a dictionary called \u201cjob_description\u201d which outlines some information about a job available at a local superstore. Our Object contains a <a href=\"https:\/\/careerkarma.com\/blog\/javascript-boolean\/\">JavaScript boolean<\/a>, a string, and an integer. Now, suppose we want to retrieve a list of the keys in that dictionary.<\/p>\n\n\n\n<p>We could create this list using the following code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>const job_description = {\n\tposition: &quot;Sales Assistant&quot;,\n\tfloor_worker: true,\n\thours_per_week: 38\n};\n\nvar job_keys = Object.keys(job_description);\n\nconsole.log(job_keys);<\/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>[&quot;position&quot;, &quot;floor_worker&quot;, &quot;hours_per_week&quot;]<\/pre><\/div>\n\n\n\n<p>First, we declared a constant called \u201cjob_description\u201d, which stores an Object with information about an available job at a local superstore.<\/p>\n\n\n\n<p>Then, we used <em>Object.keys()<\/em> to retrieve a list of the keys associated with the dictionary, and we assigned the list to the variable \u201cjob_keys\u201d. Next, we printed out the contents of the \u201cjob_keys\u201d list to the <a href=\"https:\/\/careerkarma.com\/blog\/javascript-console\/\">JavaScript console<\/a>.<\/p>\n\n\n\n<p>As you can see, our code returned a list that contains three values. Each value represents a unique key name in our Object.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JS Object.keys(): Another Example<\/h2>\n\n\n\n<p>Let\u2019s discuss another example of how to use this method.<\/p>\n\n\n\n<p>Suppose we want to print out a list of the keys in our Object, preceded by \u201cKey Name: \u201c. We could do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>const job_description = {\n\tposition: &quot;Sales Assistant&quot;,\n\tfloor_worker: true,\n\thours_per_week: 38\n};\n\nvar job_keys = Object.keys(job_description);\n\nfor (var key of job_keys) {\n\tconsole.log(&quot;Key Name: &quot; + key);\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>Key Name: position\nKey Name: floor_worker\nKey Name: hours_per_week<\/pre><\/div>\n\n\n\n<p>We first defined our \u201cjob_description\u201d Object whose keys we want to print to the console. Then, we used the JS <em>Object.keys()<\/em> method to retrieve a list of the keys in our Object.<\/p>\n\n\n\n<p>Next, we used a \u201cfor\u2026of\u201d loop to loop through every key in our \u201cjob_description\u201d Object.<\/p>\n\n\n\n<p>For each key, we printed \u201cKey Name: \u201c, followed by the name of the key, to the console. If you\u2019re interested in learning more about how \u201cfor\u2026of\u201d loops work, read our <a href=\"https:\/\/careerkarma.com\/blog\/javascript-for-loop\/\">beginner\u2019s guide to JavaScript for loops<\/a>.<\/p>\n\n\n\n<iframe loading=\"lazy\" src=\"https:\/\/repl.it\/@careerkarma\/JavaScript-Objectkeys?lite=true\" width=\"100%\" height=\"400px\" frameborder=\"0\"><\/iframe>\n<br>\n<br>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The <em>Object.keys()<\/em> method retrieves a list of keys stored in a JavaScript Object. The resultant keys are stored in a list. You cannot append keys() to the end of an Object to retrieve its keys. You must use the Object.keys() syntax.<\/p>\n\n\n\n<p>This tutorial discussed the basics of JavaScript Objects and how to use the <em>Object.keys()<\/em> method. Now you\u2019re ready to use <em>Object.keys()<\/em> to retrieve a list of keys in an Object like a professional JavaScript developer!<\/p>\n\n\n\n<p>To learn more about coding in JavaScript, read our <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-javascript\/\">How to Learn JavaScript guide<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"The JavaScript Object.keys() method retrieves the keys in an Object and returns a list that contains those keys. The order of the keys in the final list is the order they appear in the original Object. JavaScript (JS) Objects consist of two main parts: keys and values. When working with an Object, you may want&hellip;","protected":false},"author":240,"featured_media":18105,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11933],"tags":[],"class_list":{"0":"post-18104","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":null,"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 Object.keys(): A Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"The JavaScript Object.keys() method returns a list of every key in an Object. Learn how to use the Object.keys() 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-object-keys\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Object.keys(): A Guide\" \/>\n<meta property=\"og:description\" content=\"The JavaScript Object.keys() method returns a list of every key in an Object. Learn how to use the Object.keys() method On Career Karma.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/javascript-object-keys\/\" \/>\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-11-17T08:01:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:04:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/close-up-of-text-on-black-background-256502.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"678\" \/>\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-object-keys\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-object-keys\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"JavaScript Object.keys(): A Guide\",\"datePublished\":\"2020-11-17T08:01:49+00:00\",\"dateModified\":\"2023-12-01T12:04:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-object-keys\\\/\"},\"wordCount\":735,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-object-keys\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/close-up-of-text-on-black-background-256502.jpg\",\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-object-keys\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-object-keys\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-object-keys\\\/\",\"name\":\"JavaScript Object.keys(): A Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-object-keys\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-object-keys\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/close-up-of-text-on-black-background-256502.jpg\",\"datePublished\":\"2020-11-17T08:01:49+00:00\",\"dateModified\":\"2023-12-01T12:04:07+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The JavaScript Object.keys() method returns a list of every key in an Object. Learn how to use the Object.keys() method On Career Karma.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-object-keys\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-object-keys\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-object-keys\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/close-up-of-text-on-black-background-256502.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/close-up-of-text-on-black-background-256502.jpg\",\"width\":1020,\"height\":678},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-object-keys\\\/#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 Object.keys(): A 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 Object.keys(): A Guide | Career Karma","description":"The JavaScript Object.keys() method returns a list of every key in an Object. Learn how to use the Object.keys() 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-object-keys\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Object.keys(): A Guide","og_description":"The JavaScript Object.keys() method returns a list of every key in an Object. Learn how to use the Object.keys() method On Career Karma.","og_url":"https:\/\/careerkarma.com\/blog\/javascript-object-keys\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-11-17T08:01:49+00:00","article_modified_time":"2023-12-01T12:04:07+00:00","og_image":[{"width":1020,"height":678,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/close-up-of-text-on-black-background-256502.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-object-keys\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-object-keys\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"JavaScript Object.keys(): A Guide","datePublished":"2020-11-17T08:01:49+00:00","dateModified":"2023-12-01T12:04:07+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-object-keys\/"},"wordCount":735,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-object-keys\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/close-up-of-text-on-black-background-256502.jpg","articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/javascript-object-keys\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/javascript-object-keys\/","url":"https:\/\/careerkarma.com\/blog\/javascript-object-keys\/","name":"JavaScript Object.keys(): A Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-object-keys\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-object-keys\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/close-up-of-text-on-black-background-256502.jpg","datePublished":"2020-11-17T08:01:49+00:00","dateModified":"2023-12-01T12:04:07+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The JavaScript Object.keys() method returns a list of every key in an Object. Learn how to use the Object.keys() method On Career Karma.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-object-keys\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/javascript-object-keys\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/javascript-object-keys\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/close-up-of-text-on-black-background-256502.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/close-up-of-text-on-black-background-256502.jpg","width":1020,"height":678},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/javascript-object-keys\/#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 Object.keys(): A 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\/18104","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=18104"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/18104\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/18105"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=18104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=18104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=18104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}