{"id":1443,"date":"2019-07-28T18:19:15","date_gmt":"2019-07-28T18:19:15","guid":{"rendered":"https:\/\/www.copahost.com\/blog\/?p=1443"},"modified":"2020-05-31T13:57:04","modified_gmt":"2020-05-31T13:57:04","slug":"concatenate-strings-javascript","status":"publish","type":"post","link":"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/","title":{"rendered":"Concatenate strings in Javascript: Quick guide"},"content":{"rendered":"<p>Strings in javascript are the most commonly used data types. Anything we write between double quotes is a string. We can also use single quotes for strings. We can manipulate strings in various ways. Javascript provides a lot of options for string manipulation. One of the ways of working with strings in javascript is by concatenating them. In this article, we will show how to concatenate strings in Javascript by many methods.<\/p>\n<h3>Topics in the article:<\/h3>\n<ul>\n<li>Concatenate strings in one Array<\/li>\n<li>How to concatenate strings and other variables<\/li>\n<li>Concatenate strings with a separator<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Concatenate strings in one Array<\/h3>\n<p>An array in <a href=\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/\">javascript can hold any number<\/a> of values. We can also store strings in an array. The following code has an array that holds three strings. This is one example of how to concatenate strings in an array in <a href=\"https:\/\/pt.wikipedia.org\/wiki\/JavaScript\" target=\"_blank\" rel=\"noopener noreferrer\">Javascript<\/a>.<\/p>\n<h4>Example 1<\/h4>\n<pre class=\"lang:default decode:true\">var arr = [\"USA\", \"Mexico\", \"Canada\"]\r\n<\/pre>\n<p>In this array, we have &#8220;USA&#8221; at the zeroth index. similarly, &#8220;Mexico&#8221; and &#8220;Canada&#8221; occupy the next two positions. In javascript, we can concatenate all the values inside the array in a very simple way. We can use the join() method to concatenate the strings inside the array.<\/p>\n<pre class=\"lang:default decode:true \">var arr = [\"USA\", \"Mexico\", \"Canada\"]\r\nvar result = arr.join()<\/pre>\n<p>The content of the variable <strong>result<\/strong> is:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1454\" style=\"border: 1px black solid;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js7.png\" alt=\"\" width=\"187\" height=\"37\" \/><\/p>\n<p>Observe the result variable above. We concatenated the USA, Mexico, and Canada by using the join() method. But we can notice a comma after the USA and Mexico. This is the default separator of the join() method. We will learn about separators later.<\/p>\n<p>We can also concatenate two arrays in javascript using the concat() method.<\/p>\n<pre class=\"lang:default decode:true\">var arr = [\"USA\", \"Mexico\", \"Canada\"]\r\nvar arr2 = [\"Spain\", \"France\", \"Germany\"]\r\nvar result = arr.concat(arr2)\r\n\/\/ result = \"USA,Mexico,Canada,Spain,France,Germany\"<\/pre>\n<p>The content of the variable <strong>result<\/strong> is:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1453 size-full\" style=\"border: 1px black solid;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js6.png\" alt=\"Concatenate strings in Javascript\" width=\"370\" height=\"50\" srcset=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js6.png 370w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js6-300x41.png 300w\" sizes=\"(max-width: 370px) 100vw, 370px\" \/><\/p>\n<h4>Example 2<\/h4>\n<p>In the above example, we have a second array named arr2. It also contains the names of the countries. We concatenate the first and second array by using the concat() method. We can see the result as a string containing the names of all six countries. But again we can notice, a comma is separating each country.<br \/>\n<a id=\"topic2\"><\/a><\/p>\n<h3>Concatenate strings and other variables in Javascript<\/h3>\n<p>In javascript, we can also concatenate strings with variables. We can do more than concatenate strings in Javascript: we can concatenate integers and booleans to strings.\u00a0 For example, observe the following <a href=\"https:\/\/www.copahost.com\/blog\/javascript-beautifiers\/\">code<\/a>.<\/p>\n<pre class=\"lang:default decode:true\">var sum = 10\r\n\r\nvar result = \"value of sum is: \" + sum\r\n\r\n\/\/result = \"value of sum is 10\"<\/pre>\n<p>The content of the variable <strong>result<\/strong> is:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1452\" style=\"border: 1px black solid;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js5.png\" alt=\"\" width=\"162\" height=\"44\" \/><\/p>\n<p>In the above example, we concatenate an integer variable with a string. The sum variable has a value of 10 and in the result variable, we concatenate the sum variable with a string, i.e &#8220;value of sum is: &#8220;. We have to use a (+) sign for concatenation.<\/p>\n<p>We can also concatenate a number of variables containing string values with each other.<\/p>\n<pre class=\"lang:default decode:true\">var string1 = \"USA\";\r\nvar string2 = \"Mexico\";\r\nvar string3 = \"Canada\";\r\n\r\nvar result = string1+string2+string3;<\/pre>\n<p>The content of the variable <strong>result<\/strong> is:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1471\" style=\"border: 1px black solid;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/sss1.png\" alt=\"\" width=\"175\" height=\"48\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>In the above example, we can see the values of all three variables are concatenated into a single string. This is how we concatenate a number of variables.<\/p>\n<p>We can also concatenate a string with variables containing different types of data types.<\/p>\n<pre class=\"lang:default decode:true\">var string1 = \"Mexico\";\r\nvar integer1 = 100;\r\nvar boolean1 = true;\r\n\r\nvar result = string1+integer1+boolean1;<\/pre>\n<p>The content of the variable <strong>result<\/strong> is:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1470\" style=\"border: 1px black solid;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/sss.png\" alt=\"\" width=\"137\" height=\"41\" \/><\/p>\n<p>In the above example, we have three variables. First, the variable has a string, the second has an integer and third has a boolean. We concatenated these three variables into a string using the (+) sign. The result of this concatenation is also a string, i.e &#8220;string100true&#8221;.<\/p>\n<p>Remember, In javascript, anything concatenated with a string is always a string. It does not matter what are data types of other variables.<br \/>\n<a id=\"topic3\"><\/a><\/p>\n<h3>Concatenate strings in Javascript with a separator<\/h3>\n<p>Earlier, when we used the join() and concat() methods, we found out that the resulting string has a separator with every value. The separator was a comma that is the default separator of these two methods. But while concatenating strings using the (+) sign, we should use some kind of separators because they make the resulting string look better. The following example concatenates three strings using three slashes as a separator.<\/p>\n<pre class=\"lang:default decode:true\">var string1 = \"This is string1\" \r\nvar string2 = \"This is string2\"\r\nvar string3 = \"This is string3\"\r\nvar separator = \"\/\/\/\"\r\nvar result = string1 + separator + string2 + separator + string3<\/pre>\n<p>The content of the variable <strong>result<\/strong> is:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1448\" style=\"border: 1px black solid;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js2.png\" alt=\"\" width=\"388\" height=\"53\" srcset=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js2.png 388w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js2-300x41.png 300w\" sizes=\"(max-width: 388px) 100vw, 388px\" \/><\/p>\n<p>In the above example, we used a separator (\/\/\/) while concatenating three variables.<\/p>\n<p>We can also use a separator with a for loop.<\/p>\n<pre class=\"lang:default decode:true\">function concatWithSeparator(newString, string)\r\n{\r\n  var result = '';\r\n  for(var i=0;i&lt;string.length;i++) { \r\n     result = result + string[i]; \r\n     if(i+i&lt;string.length) { \r\n         result = result + separator \r\n     } \r\n  }\r\n  return result;\r\n}\r\n\r\nvar string = [\"USA\",\"Mexico\",\"Canada\"]\r\nvar separator = \"\/\/\/\"\r\nvar newString = ''; \r\n\r\nresult = concatWithSeparator(newString, string);<\/pre>\n<p>The content of the variable <strong>result<\/strong> is:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1447\" style=\"border: 1px black solid;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js1.png\" alt=\"\" width=\"203\" height=\"58\" \/><\/p>\n<p>Apart from the above two ways, we can also use the join() method with a separator. Earlier when we used this method, the default separator was a comma. We can specify our own separator also.<\/p>\n<pre class=\"lang:default decode:true\">var arr = [\"USA\", \"Mexico\", \"Canada\"];\r\n\r\nvar result = arr.join(\"\/\/\/\")<\/pre>\n<p>The content of the variable <strong>result<\/strong> is:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1447\" style=\"border: 1px black solid;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js1.png\" alt=\"\" width=\"203\" height=\"58\" \/><\/p>\n<p>In the above example, we again used the join() method to concatenate values of the array. But this time we passed a value inside the join() method. This is the separator. We can see the separator in the resulting string.<\/p>\n<h3>Conclusion<\/h3>\n<p>Strings in javascript are very common and useful. They play an important part while writing code. Javascript provides many methods and ways for manipulating strings in javascript. Remember that whenever you have issues with Javascript, you can <a href=\"https:\/\/www.copahost.com\/blog\/debug-javascript-chrome\/\">debug in Chrome<\/a> to find the exact point of error.<\/p>\n<p>Concatenate strings in Javascript inside <a href=\"https:\/\/www.copahost.com\/blog\/php-array-to-string\/\">arrays<\/a>, or even merged with other variables (like integers, <a href=\"https:\/\/www.copahost.com\/blog\/javascript-parsefloat\/\">floats<\/a>, and booleans).\u00a0 We can also use separators while concatenating. Strings in arrays can also be manipulated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Strings in javascript are the most commonly used data types. Anything we write between double quotes is a string. We can also use single quotes for strings. We can manipulate strings in various ways. Javascript provides a lot of options for string manipulation. One of the ways of working with strings in javascript is by [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1443","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Concatenate strings in Javascript: Quick guide - Copahost<\/title>\n<meta name=\"description\" content=\"Examples on how to concatenate strings in Javascript. Concatenate with integers and booleans. Concatenating strings in arrays and with a separator.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Concatenate strings in Javascript: Quick guide - Copahost\" \/>\n<meta property=\"og:description\" content=\"Examples on how to concatenate strings in Javascript. Concatenate with integers and booleans. Concatenating strings in arrays and with a separator.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"Copahost\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-28T18:19:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-31T13:57:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js7.png\" \/>\n<meta name=\"author\" content=\"Gustavo Gallas\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gustavo Gallas\" \/>\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:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/\"},\"author\":{\"name\":\"Gustavo Gallas\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246\"},\"headline\":\"Concatenate strings in Javascript: Quick guide\",\"datePublished\":\"2019-07-28T18:19:15+00:00\",\"dateModified\":\"2020-05-31T13:57:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/\"},\"wordCount\":831,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js7.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/\",\"url\":\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/\",\"name\":\"Concatenate strings in Javascript: Quick guide - Copahost\",\"isPartOf\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js7.png\",\"datePublished\":\"2019-07-28T18:19:15+00:00\",\"dateModified\":\"2020-05-31T13:57:04+00:00\",\"description\":\"Examples on how to concatenate strings in Javascript. Concatenate with integers and booleans. Concatenating strings in arrays and with a separator.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#primaryimage\",\"url\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js7.png\",\"contentUrl\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js7.png\",\"width\":187,\"height\":37},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.copahost.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Concatenate strings in Javascript: Quick guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#website\",\"url\":\"https:\/\/www.copahost.com\/blog\/\",\"name\":\"Copahost\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.copahost.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#organization\",\"name\":\"Copahost\",\"url\":\"https:\/\/www.copahost.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png\",\"contentUrl\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png\",\"width\":223,\"height\":40,\"caption\":\"Copahost\"},\"image\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246\",\"name\":\"Gustavo Gallas\",\"description\":\"Graduated in Computing at PUC-Rio, Brazil. Specialized in IT, networking, systems administration and human and organizational development\u200b. Also have brewing skills.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/gustavo-gallas-107926196\/\"],\"url\":\"https:\/\/www.copahost.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Concatenate strings in Javascript: Quick guide - Copahost","description":"Examples on how to concatenate strings in Javascript. Concatenate with integers and booleans. Concatenating strings in arrays and with a separator.","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:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Concatenate strings in Javascript: Quick guide - Copahost","og_description":"Examples on how to concatenate strings in Javascript. Concatenate with integers and booleans. Concatenating strings in arrays and with a separator.","og_url":"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/","og_site_name":"Copahost","article_published_time":"2019-07-28T18:19:15+00:00","article_modified_time":"2020-05-31T13:57:04+00:00","og_image":[{"url":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js7.png"}],"author":"Gustavo Gallas","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Gustavo Gallas","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#article","isPartOf":{"@id":"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/"},"author":{"name":"Gustavo Gallas","@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246"},"headline":"Concatenate strings in Javascript: Quick guide","datePublished":"2019-07-28T18:19:15+00:00","dateModified":"2020-05-31T13:57:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/"},"wordCount":831,"commentCount":0,"publisher":{"@id":"https:\/\/www.copahost.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js7.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/","url":"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/","name":"Concatenate strings in Javascript: Quick guide - Copahost","isPartOf":{"@id":"https:\/\/www.copahost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#primaryimage"},"image":{"@id":"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js7.png","datePublished":"2019-07-28T18:19:15+00:00","dateModified":"2020-05-31T13:57:04+00:00","description":"Examples on how to concatenate strings in Javascript. Concatenate with integers and booleans. Concatenating strings in arrays and with a separator.","breadcrumb":{"@id":"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#primaryimage","url":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js7.png","contentUrl":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/07\/js7.png","width":187,"height":37},{"@type":"BreadcrumbList","@id":"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.copahost.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Concatenate strings in Javascript: Quick guide"}]},{"@type":"WebSite","@id":"https:\/\/www.copahost.com\/blog\/#website","url":"https:\/\/www.copahost.com\/blog\/","name":"Copahost","description":"","publisher":{"@id":"https:\/\/www.copahost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.copahost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.copahost.com\/blog\/#organization","name":"Copahost","url":"https:\/\/www.copahost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png","contentUrl":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png","width":223,"height":40,"caption":"Copahost"},"image":{"@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246","name":"Gustavo Gallas","description":"Graduated in Computing at PUC-Rio, Brazil. Specialized in IT, networking, systems administration and human and organizational development\u200b. Also have brewing skills.","sameAs":["https:\/\/www.linkedin.com\/in\/gustavo-gallas-107926196\/"],"url":"https:\/\/www.copahost.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts\/1443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/comments?post=1443"}],"version-history":[{"count":16,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts\/1443\/revisions"}],"predecessor-version":[{"id":2423,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts\/1443\/revisions\/2423"}],"wp:attachment":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/media?parent=1443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/categories?post=1443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/tags?post=1443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}