{"id":12625,"date":"2020-02-26T17:14:03","date_gmt":"2020-02-27T01:14:03","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=12625"},"modified":"2023-12-01T02:31:05","modified_gmt":"2023-12-01T10:31:05","slug":"javascript-tostring","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/javascript-tostring\/","title":{"rendered":"JavaScript toString"},"content":{"rendered":"\n<p>When you\u2019re working with data in JavaScript, you may want to convert a data type to a string. For example, you may have an array of student names that you want to appear as a string, or a number that you want to convert to a string.<br><\/p>\n\n\n\n<p>That\u2019s where the JavaScript toString() function comes in. toString() can be used to convert a number or an array to a string value. Converting another data type to a string can be useful when you want to use string methods on the data with which you are working.<br><\/p>\n\n\n\n<p>In this tutorial, we are going to discuss how to use the JavaScript toString() method to convert a number or an array to a string. We will also go through a few examples to illustrate this method in action.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript String Refresher<\/h2>\n\n\n\n<p>Strings are sequences of one or more characters and can include numbers, letters, symbols, and whitespace characters. In JavaScript, strings are immutable, which means that they are unchanging after declaration. Strings are an important data type because they allow you to interact with text in your programs.&nbsp;<br><\/p>\n\n\n\n<p>JavaScript offers three ways to declare a string: using single quotes (\u2018\u2019), double quotes (\u201c\u201d), and backticks (&#8220;). Both single and double quotes function in the same way, although backticks have a few differences that make them useful in specific cases. In your programs, there is no need to use the same type of string throughout.<br><\/p>\n\n\n\n<p>Here\u2019s an example of a string in JavaScript:<br><\/p>\n\n\n\n<p><code>var example_string = \u201cThis is an example string.\u201d<br><\/code><\/p>\n\n\n\n<p>In our code, we have assigned the string <code>\u201cThis is an example string.\u201d<\/code> to the variable \u201cexample_string.\u201d Now that we have a variable that contains our string value, we can reference our string multiple times throughout our program. So, if we want to print out our string to the console, for example, we could use this code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>console.log(example_string);\n<\/pre><\/div>\n\n\n\n<p>Our code returns: <code>\u201cThis is an example string.\u201d<br><\/code><\/p>\n\n\n\n<p>Strings come with a variety of template string methods that can be used to manipulate their contents. For example, <a href=\"https:\/\/careerkarma.com\/blog\/javascript-string-contains\">contains()<\/a> can be used to determine whether or not a string contains another value, and <a href=\"https:\/\/careerkarma.com\/blog\/split-and-slice-in-javascript\">split() and slice()<\/a> can be used to retrieve certain parts of a string. But if we want to make use of these methods, our data must first be represented as a string.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript toString<\/h2>\n\n\n\n<p>The JavaScript toString() string representation method allows you to convert a number or an array to a string. This is useful if you want to perform a string method on a number or a string because first, you will need your data to be structured as a string.<br><\/p>\n\n\n\n<p>Here is the syntax for the toString() method:<br><\/p>\n\n\n\n<p><code>data.toString()<br><\/code><\/p>\n\n\n\n<p>The toString() method takes in no parameters and returns the data you specified as a string.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript Number toString<\/h2>\n\n\n\n<p>So, let\u2019s say you have a number that you want to convert into a string. You could do so using the following code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var seven = 7;\nconsole.log(seven.toString());\n<\/pre><\/div>\n\n\n\n<p>Our code returns the following: <code>\u201c7\u201d<\/code>. While the contents of our data are still the same\u2014it is still the number seven\u2014our data is now stored as a string. We can check this using the <code>\u201ctypeof\u201d<\/code> keyword which prints out the type of a value. Here\u2019s an example of using <code>\u201ctypeof\u201d <\/code>to check the type of our data:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var seven = 7;\nconsole.log(typeof seven);\nvar seven_string = seven.toString();\nconsole.log(typeof seven_string);\n<\/pre><\/div>\n\n\n\n<p>Our code returns the following:<br><\/p>\n\n\n\n<p><code>number<\/code><\/p>\n\n\n\n<p><code>string<br><\/code><\/p>\n\n\n\n<p>As you can see, the result of our first \u201ctypeof\u201d statement was \u201cnumber,\u201d because we had assigned the variable \u201cseven\u201d the value \u201c7.\u201d Then, after we converted seven to a string using toString(), we used \u201ctypeof\u201d again to check the value of our new data. \u201ctypeof seven_string\u201d returned \u201cstring\u201d because we had converted our data to a string.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript Array toString()<\/h2>\n\n\n\n<p>The toString() method can also be used on a JavaScript array to convert the contents of the array to a string. The toString() method joins all elements in an array into one string and returns a new string with each array element separated by a comma.<br><\/p>\n\n\n\n<p>Here\u2019s the syntax for the Array.toString() method:<br><\/p>\n\n\n\n<p><code>array.toString();<br><\/code><\/p>\n\n\n\n<p>Let\u2019s use an example to illustrate how this method works. Let\u2019s say that you have an array of fruits that you want to convert into a string. Here\u2019s the code you could use to convert the data:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var fruits = ['Apple', 'Pear', 'Mango', 'Raspberry', 'Blueberry', 'Banana'];\nconsole.log(fruits.toString());\n<\/pre><\/div>\n\n\n\n<p>Our code returns the following:<br><\/p>\n\n\n\n<p><code>Apple,Pear,Mango,Raspberry,Blueberry,Banana<br><\/code><\/p>\n\n\n\n<p>The contents of our data are the same\u2014we have all of our fruits\u2014but now they are stored in a string instead of an array. If we use the \u201ctypeof\u201d method, we can see that our data has been converted to a string:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var fruits = ['Apple', 'Pear', 'Mango', 'Raspberry', 'Blueberry', 'Banana'];\nconsole.log(typeof fruits);\nvar string_fruits = fruits.toString();\nconsole.log(typeof string_fruits);\n<\/pre><\/div>\n\n\n\n<p>The output of our code is as follows:<br><\/p>\n\n\n\n<p><code>object<\/code><\/p>\n\n\n\n<p><code>string<br><\/code><\/p>\n\n\n\n<p>The result of <code>\u201ctypeof fruits\u201d<\/code> was <code>\u201cobject\u201d<\/code> because our fruits were stored as an array. However, after we converted our array to a string using \u201cfruits.toString(),\u201d the \u201ctypeof string_fruits\u201d function returned <code>\u201cstring.\u201d <\/code>Thus, as you can see, our data has been converted into a string.<br><\/p>\n\n\n\n<p>In addition, the toString() method can be used to convert an array of arrays into a string. So, if we had an array of fruits with two items, an array of berries and an array of other fruits, we could still use the toString() function to convert our data into a string.<br><\/p>\n\n\n\n<p>Here\u2019s an example of toString() being used to convert an array of two arrays into one string:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var fruits = [['Apple', 'Pear', 'Plum', 'Mango'], ['Strawberry', 'Raspberry', 'Blueberry', 'Gooseberry']];\nconsole.log(fruits.toString());<\/pre><\/div>\n\n\n\n<p>Our program converts our \u201cfruits\u201d array to a string and returns the following:<br><\/p>\n\n\n\n<p><code>Apple,Pear,Plum,Mango,Strawberry,Raspberry,Blueberry,Gooseberry<br><\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The toString() method can be used to convert numbers and arrays to strings in JavaScript. This can be useful if you want to use a string method on a particular object that is not structured as a string, as the function allows you to perform the conversion you need.<br><\/p>\n\n\n\n<p>In this tutorial, we have explored the basics of strings in JavaScript, and how to use the toString() method to convert numbers and arrays to strings. We have also discussed how to use toString() to convert an array of arrays to a string.<br><\/p>\n\n\n\n<p>Now you know everything you need to know about the toString() method, so you\u2019re ready to use it in your programs!<\/p>\n","protected":false},"excerpt":{"rendered":"When you\u2019re working with data in JavaScript, you may want to convert a data type to a string. For example, you may have an array of student names that you want to appear as a string, or a number that you want to convert to a string. That\u2019s where the JavaScript toString() function comes in.&hellip;","protected":false},"author":240,"featured_media":12634,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11933],"tags":[],"class_list":{"0":"post-12625","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>JavaScript toString: The Complete Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"In this tutorial, we are going to discuss how to use the JavaScript toString() method to convert a number or an array to a string.\" \/>\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-tostring\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript toString\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we are going to discuss how to use the JavaScript toString() method to convert a number or an array to a string.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/javascript-tostring\/\" \/>\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-02-27T01:14:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T10:31:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/computer-screen-turned-on-159299.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"667\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-tostring\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-tostring\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"JavaScript toString\",\"datePublished\":\"2020-02-27T01:14:03+00:00\",\"dateModified\":\"2023-12-01T10:31:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-tostring\/\"},\"wordCount\":990,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-tostring\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/computer-screen-turned-on-159299.jpg\",\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/javascript-tostring\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-tostring\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/javascript-tostring\/\",\"name\":\"JavaScript toString: The Complete Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-tostring\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-tostring\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/computer-screen-turned-on-159299.jpg\",\"datePublished\":\"2020-02-27T01:14:03+00:00\",\"dateModified\":\"2023-12-01T10:31:05+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"In this tutorial, we are going to discuss how to use the JavaScript toString() method to convert a number or an array to a string.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-tostring\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/javascript-tostring\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-tostring\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/computer-screen-turned-on-159299.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/computer-screen-turned-on-159299.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/javascript-tostring\/#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 toString\"}]},{\"@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 toString: The Complete Guide | Career Karma","description":"In this tutorial, we are going to discuss how to use the JavaScript toString() method to convert a number or an array to a string.","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-tostring\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript toString","og_description":"In this tutorial, we are going to discuss how to use the JavaScript toString() method to convert a number or an array to a string.","og_url":"https:\/\/careerkarma.com\/blog\/javascript-tostring\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-02-27T01:14:03+00:00","article_modified_time":"2023-12-01T10:31:05+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/computer-screen-turned-on-159299.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-tostring\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-tostring\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"JavaScript toString","datePublished":"2020-02-27T01:14:03+00:00","dateModified":"2023-12-01T10:31:05+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-tostring\/"},"wordCount":990,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-tostring\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/computer-screen-turned-on-159299.jpg","articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/javascript-tostring\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/javascript-tostring\/","url":"https:\/\/careerkarma.com\/blog\/javascript-tostring\/","name":"JavaScript toString: The Complete Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-tostring\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-tostring\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/computer-screen-turned-on-159299.jpg","datePublished":"2020-02-27T01:14:03+00:00","dateModified":"2023-12-01T10:31:05+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"In this tutorial, we are going to discuss how to use the JavaScript toString() method to convert a number or an array to a string.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-tostring\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/javascript-tostring\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/javascript-tostring\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/computer-screen-turned-on-159299.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/computer-screen-turned-on-159299.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/javascript-tostring\/#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 toString"}]},{"@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\/12625","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=12625"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12625\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/12634"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=12625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=12625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=12625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}