{"id":18706,"date":"2020-06-30T12:56:18","date_gmt":"2020-06-30T19:56:18","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=18706"},"modified":"2023-12-01T03:37:07","modified_gmt":"2023-12-01T11:37:07","slug":"javascript-objects","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/javascript-objects\/","title":{"rendered":"JavaScript Objects: A Guide"},"content":{"rendered":"\n<p>While lists are a useful method of storing data, they are inconvenient to use when you want to store multiple properties about a specific object in the list. For instance, if you want to store data on all the cookies sold at a cookie store, you\u2019d need to create multiple lists to store the data.<br><\/p>\n\n\n\n<p>That\u2019s where objects come in. Objects allow you to store data in name:value pairs, which means you can add labels to the data you have stored in your application.<br><\/p>\n\n\n\n<p>In this guide, we\u2019re going to discuss what objects are and how you can use them in your code. We\u2019ll talk about creating objects, modifying objects and deleting objects in the JavaScript programming language.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is an Object?<\/h2>\n\n\n\n<p>An object is a data type in JavaScript. It is made up of zero or more names and values, which are paired together. Each name acts as a label for a value. This means that if you want to access a particular value in an object, all you have to do is reference its label. Names are sometimes referred to as \u201ckeys\u201d.<br><\/p>\n\n\n\n<p>A value can contain any type of data, whether it\u2019s a string, a number or another object. Values can also contain properties and methods, which are functions that apply to a particular object.<br><\/p>\n\n\n\n<p>Keys and values are mapped together to create a key:value pair in a JS object.<br><\/p>\n\n\n\n<p>JavaScript objects are the concept upon which JSON (which stands for JavaScript Object Notation) was built. While JSON is slightly different from JavaScript, both of these data structures use the name:value pair approach to store data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Create an Object<\/h2>\n\n\n\n<p>There are two ways you can create an object. You can use the object constructor approach or declare an object literal.<br><\/p>\n\n\n\n<p>The object constructor uses the \u201cnew\u201d keyword to create a new object:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>const cookie = new Object();<\/pre><\/div>\n\n\n\n<p>This creates an empty object to which we can add values. We can also declare an object using an object literal, which is simply a set of curly brackets:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>const cookie = {};<\/pre><\/div>\n\n\n\n<p>In both of these examples we have created an empty object. You\u2019ll find these methods used interchangeably in JavaScript applications. The object literal method is perhaps more common on account of its simplicity; you only need to create a set of curly brackets.<br><\/p>\n\n\n\n<p>To create an object with data, we can use the object literal syntax:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>const raspberry_white_choc = {\n\tname: \"Raspberry White Chocolate Chip\",\n\tprice: 1.50,\n\tavailable: true,\n\tstock: 42\n}<\/pre><\/div>\n\n\n\n<p>This object contains four names and values. For instance, the label \u201cprice\u201d is associated with the floating-point number 1.50. The label \u201cavailable\u201d is associated with the boolean value \u201ctrue\u201d.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Read an Object<\/h2>\n\n\n\n<p>So far we\u2019ve discussed how to create an object, but an object is not much use if you can\u2019t access its contents. There are two ways to read the contents of an object. You can use either dot notation (.) or bracket notation ([]).<br><\/p>\n\n\n\n<p>Let\u2019s say we want to retrieve the name of our chocolate chip cookie. We could do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>console.log(raspberry_white_choc.name);<\/pre><\/div>\n\n\n\n<p>This code returns: Raspberry White Chocolate Chip. In our example, we have referenced the name of our object \u2013 \u201craspberry_white_choc\u201d \u2013 followed by a dot, then the name of the property whose value we want to retrieve. This is why it\u2019s called dot notation. There is a dot between the object and property name.<br><\/p>\n\n\n\n<p>You can also use bracket notation to read an object:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>console.log(raspberry_white_choc[\"available\"]);<\/pre><\/div>\n\n\n\n<p>Our code returns: true. Bracket notation is where you specify the name of an object, then the name of the value you want to retrieve. The name of the value you want to retrieve should be enclosed in quotation marks, then square brackets.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Modify an Object<\/h2>\n\n\n\n<p>There are three possible ways in which you can modify an object:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add items to an object<\/li>\n\n\n\n<li>Modify existing object items<\/li>\n\n\n\n<li>Remove items from an object<\/li>\n<\/ul>\n\n\n\n<p>Let\u2019s discuss these one-by-one, with reference to our cookie example from earlier.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Add Items to an Object<\/h3>\n\n\n\n<p>Unlike lists, there is no <code>push()<\/code> or <code>append()<\/code> function you can use to add a value to an object. All you have to do is assign a new value to a property using the assignment operator.<br><\/p>\n\n\n\n<p>Let\u2019s say that we want to add the value \u201cgluten_free\u201d to our object. We could do so using either of the following statements:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>\/\/ Using bracket notation\nraspberry_white_choc[\"gluten_free\"] = false;\nconsole.log(raspberry_white_choc.gluten_free);\n\/\/ Using dot notation\nraspberry_white_choc.gluten_free = false;\nconsole.log(raspberry_white_choc.gluten_free);<\/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>false\nfalse<\/pre><\/div>\n\n\n\n<p>In both of these examples, we\u2019ve created a new item in our object called \u201cgluten_free\u201d. The value we have assigned this item is \u201cfalse\u201d.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Modify Existing Object Items<\/h3>\n\n\n\n<p>Changing the contents of an object works in the same way as assigning new values to an object. Both methods use the assignment operator to modify the object.<br><\/p>\n\n\n\n<p>Suppose we have changed our recipe for the raspberry white chocolate chip cookie and it is now gluten free. We could change the \u201cgluten_free\u201d item in our object using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>raspberry_white_choc.gluten_free = true;\nconsole.log(raspberry_white_choc.gluten_free);<\/pre><\/div>\n\n\n\n<p>Our code returns: true. You could also use bracket notation to make such a change, if you prefer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Remove Items from an Object<\/h3>\n\n\n\n<p>The \u201cdelete\u201d keyword allows you to remove a property from an object. The following code allows us to delete the \u201cgluten_free\u201d property from our object:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>delete raspberry_white_choc.gluten_free;\nconsole.log(raspberry_white_choc);<\/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>{ available: true, name: \"Raspberry White Chocolate Chip\", price: 1.5, stock: 42 }<\/pre><\/div>\n\n\n\n<p>As you can see, the name \u201cgluten_free\u201d is no longer present in our object. That\u2019s because we used the delete keyword to remove it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The JavaScript object structure makes it easy to store related data. In this article, we talked about how an object could store information on a cookie for a cookie store. We could have also used an object to store user accounts, recipes at a bakery or calendar engagements.<\/p>\n","protected":false},"excerpt":{"rendered":"While lists are a useful method of storing data, they are inconvenient to use when you want to store multiple properties about a specific object in the list. For instance, if you want to store data on all the cookies sold at a cookie store, you\u2019d need to create multiple lists to store the data.&hellip;","protected":false},"author":240,"featured_media":9207,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11933],"tags":[],"class_list":{"0":"post-18706","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 Objects: A Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"JavaScript objects, on which JSON is based, allow you to store data using a name:value structure. On Career Karma, learn how to work with JavaScript objects.\" \/>\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-objects\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Objects: A Guide\" \/>\n<meta property=\"og:description\" content=\"JavaScript objects, on which JSON is based, allow you to store data using a name:value structure. On Career Karma, learn how to work with JavaScript objects.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/javascript-objects\/\" \/>\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-06-30T19:56:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:37:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-IKUYGCFmfw4-unsplash-1.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=\"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-objects\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-objects\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"JavaScript Objects: A Guide\",\"datePublished\":\"2020-06-30T19:56:18+00:00\",\"dateModified\":\"2023-12-01T11:37:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-objects\\\/\"},\"wordCount\":938,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-objects\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/blake-connally-IKUYGCFmfw4-unsplash-1.jpg\",\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-objects\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-objects\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-objects\\\/\",\"name\":\"JavaScript Objects: A Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-objects\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-objects\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/blake-connally-IKUYGCFmfw4-unsplash-1.jpg\",\"datePublished\":\"2020-06-30T19:56:18+00:00\",\"dateModified\":\"2023-12-01T11:37:07+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"JavaScript objects, on which JSON is based, allow you to store data using a name:value structure. On Career Karma, learn how to work with JavaScript objects.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-objects\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-objects\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-objects\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/blake-connally-IKUYGCFmfw4-unsplash-1.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/blake-connally-IKUYGCFmfw4-unsplash-1.jpg\",\"width\":1000,\"height\":667,\"caption\":\"desktop screen in a darkened room with ambient light\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-objects\\\/#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 Objects: 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 Objects: A Guide | Career Karma","description":"JavaScript objects, on which JSON is based, allow you to store data using a name:value structure. On Career Karma, learn how to work with JavaScript objects.","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-objects\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Objects: A Guide","og_description":"JavaScript objects, on which JSON is based, allow you to store data using a name:value structure. On Career Karma, learn how to work with JavaScript objects.","og_url":"https:\/\/careerkarma.com\/blog\/javascript-objects\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-06-30T19:56:18+00:00","article_modified_time":"2023-12-01T11:37:07+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-IKUYGCFmfw4-unsplash-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-objects\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-objects\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"JavaScript Objects: A Guide","datePublished":"2020-06-30T19:56:18+00:00","dateModified":"2023-12-01T11:37:07+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-objects\/"},"wordCount":938,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-objects\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-IKUYGCFmfw4-unsplash-1.jpg","articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/javascript-objects\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/javascript-objects\/","url":"https:\/\/careerkarma.com\/blog\/javascript-objects\/","name":"JavaScript Objects: A Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-objects\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-objects\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-IKUYGCFmfw4-unsplash-1.jpg","datePublished":"2020-06-30T19:56:18+00:00","dateModified":"2023-12-01T11:37:07+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"JavaScript objects, on which JSON is based, allow you to store data using a name:value structure. On Career Karma, learn how to work with JavaScript objects.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-objects\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/javascript-objects\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/javascript-objects\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-IKUYGCFmfw4-unsplash-1.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2019\/12\/blake-connally-IKUYGCFmfw4-unsplash-1.jpg","width":1000,"height":667,"caption":"desktop screen in a darkened room with ambient light"},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/javascript-objects\/#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 Objects: 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\/18706","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=18706"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/18706\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/9207"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=18706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=18706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=18706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}