{"id":12635,"date":"2020-05-06T17:24:05","date_gmt":"2020-05-07T00:24:05","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=12635"},"modified":"2023-12-01T02:44:24","modified_gmt":"2023-12-01T10:44:24","slug":"javascript-comments","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/javascript-comments\/","title":{"rendered":"A Step-By-Step Guide to JavaScript Comments"},"content":{"rendered":"\n<p><em>JavaScript comments are used to write notes in your code or to disable sections of code without deleting them. Comments are made in JavaScript by adding <\/em><code><em>\/\/<\/em><\/code><em> before a single line, or <\/em><code><em>\/*<\/em><\/code><em> before and <\/em><code><em>*\/<\/em><\/code><em> after multiple lines.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>Commenting on code is a core feature of a number of programming languages. The idea behind code comments is that while your code will be read by the computer, your code will also be read by humans, and so it is important that it is easy for people to understand the code that you write.<\/p>\n\n\n\n<p>Comments allow you to keep track of your code as you are programming, and give you the ability to take notes that may be helpful further down the line. In addition, if you are working on a team, writing comments will help ensure that your code is readable for everyone who may have to contribute to your work.<br><\/p>\n\n\n\n<p>In this tutorial, we are going to discuss how to write comments in JavaScript. We will start by discussing the value of commenting in JavaScript, then we will look at the syntax you can use to write comments in JavaScript.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Writing Comments on Code<\/h2>\n\n\n\n<p>Commenting is an essential part of writing readable and maintainable code. The truth is that while you may understand the code you are writing today, there is no guarantee that you will be able to effectively describe what it does tomorrow. In addition, if you are working with other people, there is a high chance that they may not understand some of the code you write.<br><\/p>\n\n\n\n<p>That\u2019s where comments come in. Comments are statements which are ignored by the compiler and can be used to explain your JavaScript code.<br><\/p>\n\n\n\n<p>As a developer, writing comments on your own code will allow you to more effectively keep track of what you are doing. As you are writing your code, you can write down notes which will help you better understand your code and figure out the intent behind code you have previously written. Writing comments will also be helpful for any other people who may see your code, as the comment will likely help them understand how your code works in more depth.<br><\/p>\n\n\n\n<p>Every developer writes comments differently, but the general rule is that comments should be used to explain the intent behind your code. After all, your code speaks for itself, but the reasons behind writing code in a certain way often do not. So, by writing comments, you can explain why you approached a problem in a certain way, making it easier for both you and others to understand how your program works further down the line.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript Comments<\/h2>\n\n\n\n<p>There are two types of comments used in JavaScript: single-line comments and block comments.<br><\/p>\n\n\n\n<p>Single-line comments are written using two forward slashes (\/\/) and are written on one line of code. Every character following the <code>\u201c\/\/\u201d <\/code>statement will be ignored until the end of the line. Here\u2019s an example of a single-line comment in JavaScript:<br><\/p>\n\n\n\n<p><code>\/\/ This is a single-line comment<br><\/code><\/p>\n\n\n\n<p>Block comments are written with opening and closing tags and allow you to write comments that span across multiple lines. The opening and closing tags for block comments are:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\u201c\/*\u201d<\/code> for opening a comment<\/li>\n\n\n\n<li><code>\u201c*\/\u201d<\/code> for closing a comment<\/li>\n<\/ul>\n\n\n\n<p>Block comments are sometimes referred to as multi-line comments and resemble CSS multi-line comments. Here\u2019s an example of a block comment in JavaScript:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>\/* This is a multi-line\nblock comment *\/<\/pre><\/div>\n\n\n\n<p>All code between our open and closing tags will be ignored by the compiler.&nbsp;<br><\/p>\n\n\n\n<p>Each type of comment can be used to explain your code and discuss the intention behind your code. Here\u2019s an example of a comment being used to explain a basic variable declaration:<br><\/p>\n\n\n\n<p>\/\/ Declare \u201cchocolate\u201d variable to store chocolate types as an array<\/p>\n\n\n\n<p>var chocolate = [\u2018Dark\u2019, \u2018Milk\u2019, \u2018White\u2019, \u2018Hazelnut\u2019, \u2018Caramel\u2019];<br><\/p>\n\n\n\n<p>Comments in any programming language should be updated frequently as the code changes. So, if we decided that our variable name was going to be renamed to \u201cchocolate_types,\u201d we should update our comment to ensure that it reflects the new variable name. Indeed, as programs get larger, they often change significantly, so it\u2019s important to update your comments alongside your code.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Commenting Out Code<\/h2>\n\n\n\n<p>Comments are often used for one of two purposes. The first, as we have discussed throughout this article, is to explain the intent behind your code and clarify any confusing procedures. The second is to prevent code from running while you are testing.<br><\/p>\n\n\n\n<p>Commenting out code allows you to stop a line or multiple lines of code from running without removing the code from your program entirely. This usage of comments is common when debugging, as you may want to try out multiple solutions to a problem and retain your code for later.<br><\/p>\n\n\n\n<p>Here\u2019s an example of a comment that comments out a line of code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var chocolate = ['Dark', 'Milk', 'White', 'Hazelnut', 'Caramel'];\n\/\/ var flavors ['Strawberry Deluxe', 'Hazelnut Praline', 'Vanilla', 'Triple Truffle'];<\/pre><\/div>\n\n\n\n<p>When we execute our program, the compiler will only execute the line of code that declares the variable <code>\u201cchocolate.\u201d<\/code> We have commented out the <code>\u201cflavors\u201d<\/code> variable because it contains an error and we need to debug the problem. In this case, we have forgotten to place an equals sign between our variable name <code>(\u201cflavors\u201d)<\/code> and the value of the variable (our array of flavors).<br><\/p>\n\n\n\n<p>Let\u2019s break down each of the two types of comments we have discussed and explore how they can be used.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Single-Line Comments<\/h2>\n\n\n\n<p>Single-line comments, also known as inline comments, are used to comment on part of a line of code or a full line of code. Here\u2019s an example of a JavaScript single-line comment:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var first_type = chocolate[0]; \/\/ Get first value of chocolate array for later reference\n<\/pre><\/div>\n\n\n\n<p>In this comment, we declare a variable <code>\u201cfirst_type\u201d<\/code> which stores the first value in our <code>\u201cchocolate\u201d<\/code> array. Then, we add an inline comment at the end of our line to explain the intent behind our code.<br><\/p>\n\n\n\n<p>Single-line comments are generally used to make short comments on your code, or to describe the intent behind a specific line of code. However, single-line comments are not the only type of comment you should use. If you have to explain a larger function, it\u2019s best to write block comments.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Block Comments<\/h2>\n\n\n\n<p>Block comments are written across multiple lines and are used to explain a larger section of code. Whereas single-line comments usually explain one line of code, a block comment may explain a function or the purpose of a file.<br><\/p>\n\n\n\n<p>Multi-line comments start either at the top of a function or a file, in most cases. Here\u2019s an example of a block comment being used to explain a for loop:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var chocolate = ['Dark', 'Milk', 'White', 'Hazelnut', 'Caramel'];\n\/* Create a for loop to iterate through chocolate\narray and print out each individual value\nin the array *\/\nfor (i = 0; i &lt; chocolate.length; i++) {\n\tconsole.log(chocolate[i]);\n};\n<\/pre><\/div>\n\n\n\n<p>Our block comment spans across three lines and is being used to describe the code written in our \u201cfor\u201d loop.<br><\/p>\n\n\n\n<p>Block comments can also be found at the start of a file to explain the purpose of a file, or to include information about the author and version of the file. Here\u2019s an example of a snippet that includes the author of a file and the date it was created in JavaScript:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>\/* Author: John Appleseed\n   Date: January 1, 2020 *\/<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Writing comments on your code allows you to write more readable and maintainable code. You can use comments to both keep track of your code for your future self, and to make it easy for other people working with your code to understand its purpose.<br><\/p>\n\n\n\n<p>In this tutorial, we discussed the basics of commenting and then explored how to write a comment in JavaScript. We also discussed the two main types of comments\u2014single-line and multi-line\u2014and showed examples of each type of code comment in action. Finally, we discussed the differences between commenting on and commenting out code.<br><\/p>\n\n\n\n<p>Now you\u2019re ready to write comments in JavaScript like an expert!<\/p>\n","protected":false},"excerpt":{"rendered":"JavaScript comments are used to write notes in your code or to disable sections of code without deleting them. Comments are made in JavaScript by adding \/\/ before a single line, or \/* before and *\/ after multiple lines. Commenting on code is a core feature of a number of programming languages. The idea behind&hellip;","protected":false},"author":240,"featured_media":12636,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11933],"tags":[],"class_list":{"0":"post-12635","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.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>A Step-By-Step Guide to JavaScript Comments | Career Karma<\/title>\n<meta name=\"description\" content=\"Comments are an essential part of programming that are used to explain the intent of your code and how it works. Learn about how to write comments in JavaScript 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-comments\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A Step-By-Step Guide to JavaScript Comments\" \/>\n<meta property=\"og:description\" content=\"Comments are an essential part of programming that are used to explain the intent of your code and how it works. Learn about how to write comments in JavaScript on Career Karma.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/javascript-comments\/\" \/>\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-07T00:24:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T10:44:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/chairs-device-electronics-eyeglasses-1181376.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"668\" \/>\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=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-comments\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-comments\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"A Step-By-Step Guide to JavaScript Comments\",\"datePublished\":\"2020-05-07T00:24:05+00:00\",\"dateModified\":\"2023-12-01T10:44:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-comments\/\"},\"wordCount\":1261,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-comments\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/chairs-device-electronics-eyeglasses-1181376.jpg\",\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/javascript-comments\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-comments\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/javascript-comments\/\",\"name\":\"A Step-By-Step Guide to JavaScript Comments | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-comments\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-comments\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/chairs-device-electronics-eyeglasses-1181376.jpg\",\"datePublished\":\"2020-05-07T00:24:05+00:00\",\"dateModified\":\"2023-12-01T10:44:24+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"Comments are an essential part of programming that are used to explain the intent of your code and how it works. Learn about how to write comments in JavaScript on Career Karma.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-comments\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/javascript-comments\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-comments\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/chairs-device-electronics-eyeglasses-1181376.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/chairs-device-electronics-eyeglasses-1181376.jpg\",\"width\":1000,\"height\":668},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-comments\/#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\":\"A Step-By-Step Guide to JavaScript Comments\"}]},{\"@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":"A Step-By-Step Guide to JavaScript Comments | Career Karma","description":"Comments are an essential part of programming that are used to explain the intent of your code and how it works. Learn about how to write comments in JavaScript 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-comments\/","og_locale":"en_US","og_type":"article","og_title":"A Step-By-Step Guide to JavaScript Comments","og_description":"Comments are an essential part of programming that are used to explain the intent of your code and how it works. Learn about how to write comments in JavaScript on Career Karma.","og_url":"https:\/\/careerkarma.com\/blog\/javascript-comments\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-05-07T00:24:05+00:00","article_modified_time":"2023-12-01T10:44:24+00:00","og_image":[{"width":1000,"height":668,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/chairs-device-electronics-eyeglasses-1181376.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":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/javascript-comments\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-comments\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"A Step-By-Step Guide to JavaScript Comments","datePublished":"2020-05-07T00:24:05+00:00","dateModified":"2023-12-01T10:44:24+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-comments\/"},"wordCount":1261,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-comments\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/chairs-device-electronics-eyeglasses-1181376.jpg","articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/javascript-comments\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/javascript-comments\/","url":"https:\/\/careerkarma.com\/blog\/javascript-comments\/","name":"A Step-By-Step Guide to JavaScript Comments | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-comments\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-comments\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/chairs-device-electronics-eyeglasses-1181376.jpg","datePublished":"2020-05-07T00:24:05+00:00","dateModified":"2023-12-01T10:44:24+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"Comments are an essential part of programming that are used to explain the intent of your code and how it works. Learn about how to write comments in JavaScript on Career Karma.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-comments\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/javascript-comments\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/javascript-comments\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/chairs-device-electronics-eyeglasses-1181376.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/chairs-device-electronics-eyeglasses-1181376.jpg","width":1000,"height":668},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/javascript-comments\/#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":"A Step-By-Step Guide to JavaScript Comments"}]},{"@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\/12635","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=12635"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12635\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/12636"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=12635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=12635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=12635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}