{"id":20059,"date":"2020-11-25T02:34:17","date_gmt":"2020-11-25T10:34:17","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=20059"},"modified":"2023-12-01T04:04:58","modified_gmt":"2023-12-01T12:04:58","slug":"javascript-string-interpolation","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/","title":{"rendered":"JavaScript String Interpolation: A Beginner\u2019s Guide"},"content":{"rendered":"\n<p><em>JavaScript string interpolation is the process of embedding an expression into part of a string. A template literal is used to embed expressions. You can add values such as variables and mathematical calculations into a string using interpolation.<\/em><\/p>\n\n\n\n<p>Do you need to add a value inside a JavaScript string? The template literal syntax has you covered. Template literals make it easier to work with multiline strings and embed values inside a JavaScript string. Template literals are the JavaScript string interpolation syntax.<\/p>\n\n\n\n<p>In this guide, we\u2019re going to talk about JavaScript string interpolation. We\u2019ll discuss what it is, how it works, and walk through an example of string interpolation to help you get started.<\/p>\n\n\n\n<p>Without further ado, let\u2019s begin!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript String Interpolation<\/h2>\n\n\n\n<p>You can add values into a JavaScript string using a template literal. This is a dollar sign followed by a pair of curly brackets. Within the curly brackets should be the expression whose value you want to embed in the string.<\/p>\n\n\n\n<p>Template literals let you embed values into a string without relying on concatenation. To declare a template literal, your string must be enclosed in back ticks (&#8220;) instead of quotation marks.<\/p>\n\n\n\n<p>Consider the following syntax:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>`This is a string. Here is the value of 9 + 10: ${9 + 10}.`<\/pre><\/div>\n\n\n\n<p>We have declared a template literal. Our expression is:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>${9 + 10}<\/pre><\/div>\n\n\n\n<p>This expression evaluates 9 + 10. The result of this expression is added to the end of our string, before the full stop. This is because we have written our expression before the full stop.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript String Interpolation Example<\/h2>\n\n\n\n<p>Template literals allow you to embed values directly into a string. Consider this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>const address_number = &quot;10 Downing Street&quot;;\nconst prime_minister_address = `The Prime Minister's address is ${address_number}.`;\nconsole.log(prime_minister_address)<\/pre><\/div>\n\n\n\n<p>The first line of code defines the Prime Minister\u2019s address number. Next, we use template literals to create the full address. The ${} syntax is used to embed a value into our string. We have added the value of \u201caddress_number\u201d into the string.<\/p>\n\n\n\n<p>Let\u2019s run our code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>The Prime Minister's address is 10 Downing Street<\/pre><\/div>\n\n\n\n<p>Our code has merged our two strings.<\/p>\n\n\n\n<p>When you are using template literals, you can embed any value inside the literal. This includes a string, a number, or a the result of a <a href=\"https:\/\/careerkarma.com\/blog\/javascript-math\/\">JavaScript math calculation<\/a>. You don\u2019t need to embed a template literal inside a template literal.<\/p>\n\n\n\n<p>One of the major advantages of string literals is that its syntax is clear. We can embed our JavaScript code directly into our string.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Merge Strings Using Concatenation<\/h3>\n\n\n\n<p>We can merge strings using concatenation. Let\u2019s say that we have two strings:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>const full_address = `The Prime Minister's address is `;\nconst address_number = `10 Downing Street`;<\/pre><\/div>\n\n\n\n<p>You can do concatenate two strings using the plus sign (+):<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>const prime_minister_address = full_address + address_number + &quot;.&quot;;\nconsole.log(prime_minister_address);<\/pre><\/div>\n\n\n\n<p>The <a href=\"https:\/\/careerkarma.com\/blog\/javascript-console\/\">JavaScript console<\/a> prints out the following value:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>The Prime Minister's address is 10 Downing Street<\/pre><\/div>\n\n\n\n<p>We have successfully created a string that combines our two strings. At the end, we use the concatenation operator to add a full stop (\u201c.\u201d) to our sentence.<\/p>\n\n\n\n<p>But, this syntax has a drawback: we can only add values to the end of a string. This is a big reason behind the introduction of template literal syntax. It is now easier to add values in the middle of a string.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">String Interpolation JavaScript: Calculations<\/h2>\n\n\n\n<p>The code inside a template literal is a JavaScript statement. This means that you can use template literals to perform <a href=\"https:\/\/careerkarma.com\/blog\/javascript-math\/\">calculations<\/a> and embed their values into a program.<\/p>\n\n\n\n<p>Let\u2019s create a string that calculates the price of two drinks at a caf\u00e9 and places the result inside a string:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var drink1 = 2.30;\nvar drink2 = 2.20;\n\nvar bill = `The total cost of your drinks is $${drink1 + drink2}.`;<\/pre><\/div>\n\n\n\n<p>Inside the ${} syntax, we have added a calculation. This calculation adds the values of two JavaScript variables together. Our variables are drink1 (2.30) and drink2 (2.20) together. Our code returns a string with the sum of these values:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>The total cost of your drinks is $4.50.<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">String Interpolation JavaScript: Ternary Operators<\/h2>\n\n\n\n<p><a href=\"https:\/\/careerkarma.com\/blog\/how-to-use-ternary-operators-javascript\/\">JavaScript ternary operators<\/a> let you evaluate whether a statement is True or False. They are a more concise way of writing an if statement. Ternary operators are particularly useful if the result of an <em>if<\/em> statement is only going to take up one line of code.<\/p>\n\n\n\n<p>If a customer spends over $4.00 on their coffees, they should be presented with their bill. Then, they should be asked to join the coffee loyalty card club. Otherwise, they should just be presented with their bill. We could use a ternary operator to check the cost of a customer\u2019s bill:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var drink1 = 2.30;\nvar drink2 = 2.20;\nvar total = drink1 + drink2;\n\nvar bill = `The total cost of your drinks is $${total}. ${total &gt; 4.00 ? &quot;Would you like to join our coffee club? It will earn you a free coffee for every ten that you buy.&quot; : &quot;&quot;}`;\nconsole.log(bill);<\/pre><\/div>\n\n\n\n<p>Our template literal contains two embedded expressions. First, we embed the value of \u201ctotal\u201d inside our string. Next, we use a ternary operator to check whether a customer should be asked to join the coffee house\u2019s loyalty card club.<\/p>\n\n\n\n<p>If the total purchase price is over $4.00, the following message is printed to the console:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>The total cost of your drinks is $4.50. Would you like to join our coffee club? It will earn you a free coffee for every ten that you buy.<\/pre><\/div>\n\n\n\n<p>Otherwise, our ternary operator will return the value after the colon (\u201c:\u201d). This is the value that is returned when an expression evaluates to False.<\/p>\n\n\n\n<p>In our example, the value after the colon is an empty string. This means that if a customer\u2019s purchase is under $4.00, only the first sentence of our template literal is returned:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>The total cost of your drinks is $4.50.<\/pre><\/div>\n\n\n\n<iframe loading=\"lazy\" src=\"https:\/\/repl.it\/@careerkarma\/JavaScript-String-Interpolation?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>Template literals allow you to embed a value inside a string. You can perform calculations inside a template literal. We declare template literals using backticks. Statements to evaluate are denoted by a dollar sign and a pair of curly brackets within which the statement appears.<\/p>\n\n\n\n<p>For advice on learning more about 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":"JavaScript string interpolation is the process of embedding an expression into part of a string. A template literal is used to embed expressions. You can add values such as variables and mathematical calculations into a string using interpolation. Do you need to add a value inside a JavaScript string? The template literal syntax has you&hellip;","protected":false},"author":240,"featured_media":20060,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11933],"tags":[],"class_list":{"0":"post-20059","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.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>JavaScript String Interpolation: A Beginner\u2019s Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"JavaScript string interpolation is supported in template literals. On Career Karma, learn how to add values inside a string using template literals.\" \/>\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-string-interpolation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript String Interpolation: A Beginner\u2019s Guide\" \/>\n<meta property=\"og:description\" content=\"JavaScript string interpolation is supported in template literals. On Career Karma, learn how to add values inside a string using template literals.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/\" \/>\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-25T10:34:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:04:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/van-tay-media-S2-AKdWQoQ-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\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-string-interpolation\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"JavaScript String Interpolation: A Beginner\u2019s Guide\",\"datePublished\":\"2020-11-25T10:34:17+00:00\",\"dateModified\":\"2023-12-01T12:04:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/\"},\"wordCount\":855,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/van-tay-media-S2-AKdWQoQ-unsplash.jpg\",\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/\",\"name\":\"JavaScript String Interpolation: A Beginner\u2019s Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/van-tay-media-S2-AKdWQoQ-unsplash.jpg\",\"datePublished\":\"2020-11-25T10:34:17+00:00\",\"dateModified\":\"2023-12-01T12:04:58+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"JavaScript string interpolation is supported in template literals. On Career Karma, learn how to add values inside a string using template literals.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/van-tay-media-S2-AKdWQoQ-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/van-tay-media-S2-AKdWQoQ-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/#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 String Interpolation: A Beginner\u2019s 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\/#\/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 String Interpolation: A Beginner\u2019s Guide | Career Karma","description":"JavaScript string interpolation is supported in template literals. On Career Karma, learn how to add values inside a string using template literals.","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-string-interpolation\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript String Interpolation: A Beginner\u2019s Guide","og_description":"JavaScript string interpolation is supported in template literals. On Career Karma, learn how to add values inside a string using template literals.","og_url":"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-11-25T10:34:17+00:00","article_modified_time":"2023-12-01T12:04:58+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/van-tay-media-S2-AKdWQoQ-unsplash.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-string-interpolation\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"JavaScript String Interpolation: A Beginner\u2019s Guide","datePublished":"2020-11-25T10:34:17+00:00","dateModified":"2023-12-01T12:04:58+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/"},"wordCount":855,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/van-tay-media-S2-AKdWQoQ-unsplash.jpg","articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/","url":"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/","name":"JavaScript String Interpolation: A Beginner\u2019s Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/van-tay-media-S2-AKdWQoQ-unsplash.jpg","datePublished":"2020-11-25T10:34:17+00:00","dateModified":"2023-12-01T12:04:58+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"JavaScript string interpolation is supported in template literals. On Career Karma, learn how to add values inside a string using template literals.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/van-tay-media-S2-AKdWQoQ-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/van-tay-media-S2-AKdWQoQ-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/#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 String Interpolation: A Beginner\u2019s 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\/#\/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\/20059","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=20059"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/20059\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/20060"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=20059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=20059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=20059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}