{"id":22501,"date":"2020-12-17T16:25:48","date_gmt":"2020-12-18T00:25:48","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=22501"},"modified":"2020-12-18T00:14:14","modified_gmt":"2020-12-18T08:14:14","slug":"javascript-multi-line-strings","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/","title":{"rendered":"JavaScript: MultiLine Strings Using \\n and Template Literals"},"content":{"rendered":"\n<p><em>You can create a JavaScript multiline string using new line characters, concatenation, and template string literals. Template string literals are the most modern syntax and also let you embed variables into a string.<\/em><\/p>\n\n\n\n<p>Have you ever wanted to span a string across multiple lines of text? I would not be surprised. This is a very common need for developers. The last thing you want to do is add a string into your code that does not display the way you want it to.<\/p>\n\n\n\n<p>Not to worry because JavaScript has us covered. In JavaScript, there are three ways you can create multi-line strings:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Using new line characters (\\n).<\/li><li>Using string concatenation.<\/li><li>Using template string literals.<\/li><\/ul>\n\n\n\n<p>In this guide, we&#8217;re going to talk about how to use each of these three approaches to write a multi-line string. We&#8217;ll walk through examples of each approach so you can easily get started.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prior to ES6: New Lines and Concatenation<\/h2>\n\n\n\n<p>Before ECMAScript 6 (ES6), you had to use new line characters or string concatenation to separate a string into multiple lines.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>const multiLine = (str) =&gt; {\n   return str;\n }\n  let string = &quot;\\nHarry Potter\\nHermione Grainger\\nRonald Weasley\\nNeville Longbottom\\n&quot;\n  console.log(multiLine(string));<\/pre><\/div>\n\n\n\n<p>New line characters are part of the string. These characters are common in many programming languages. A new line character is denoted by &#8220;\\n&#8221;. We can use this character to span our string across multiple lines. The resulting output is:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/SFrMOMOKH1OmNEV29LHFczi6A8PixCbYr0SKkftgMLSeRmjClHS4dNyRjTMdmd4zzOwfbXxNTUSZ88Hk22pFnKXkct_hXdgCtedUDLBXOlmExOuFCrRqquRhFcVj6wz3Bg4WWpcx\" alt=\"\"\/><\/figure>\n\n\n\n<p>Our code returns our four Harry Potter characters on new lines. Each \\n denotes a new line. If we wanted to have a one line gap between each name, we would need to specify two \\n characters.<\/p>\n\n\n\n<p>You can also use the <a href=\"https:\/\/careerkarma.com\/blog\/javascript-concat-string\/\">JavaScript string concatenation operator<\/a>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>const multiLine = ((str) =&gt; {\n   return str;\n})\nlet string = &quot;The main characters in Harry Potter are:&quot; + &quot;\\n\\t&quot; + &quot;Harry Potter&quot; + &quot;\\n\\t&quot; + &quot;Hermione Grainger&quot; + &quot;\\n\\t&quot; + &quot;Ronald Weasley&quot; + &quot;\\n\\t&quot; + &quot;Neville Longbottom&quot; + &quot;\\n&quot;;\nconsole.log(multiLine(string));<\/pre><\/div>\n\n\n\n<p>In this example, we&#8217;re also depending on the new line characters. These are denoted by the \\n example. This approach is useful if you have multiple strings you want to appear on different lines. But, your code can very quickly get messy. Nobody likes messy code.<\/p>\n\n\n\n<p>These are acceptable ways of creating multi lines in JavaScript. But, with the advent of ES6 there is a new way to do the same thing: template string literals.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript Multiline String: Template String Literals<\/h2>\n\n\n\n<p>As part of EcmaScript 6 (ES6), we can use back ticks to create a string formatted in a particular way. This is called a template string literal. You can add new line breaks using the Enter key inside a template string literal.<\/p>\n\n\n\n<p>The back tick, &#8220;`&#8221;, is the upper leftmost key on a standard keyboard.<\/p>\n\n\n\n<p>Let&#8217;s take a look at the syntax for a string literal:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre> const multiLine = (str) =&gt; {\n   return str;\n }\n  let string = `\n Harry Potter\n Hermione Grainger\n Ronald Weasley\n Neville Longbottom\n `\n  console.log(multiLine(string));<\/pre><\/div>\n\n\n\n<p>We have declared a string that spans multiple lines. The back tick character denotes a string literal. <\/p>\n\n\n\n<p>A big advantage of the string literal syntax is you can use variables inside the string. Use ${variableNameHere} to add variables to your template literal, like so:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>var age = &quot;13&quot;;\nvar message = `Jimmy is ${13}.`;\n\nconsole.log(message);<\/pre><\/div>\n\n\n\n<p>Our code returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Jimmy is 13.<\/pre><\/div>\n\n\n\n<p>We have used the ${} syntax to add the contents of a variable into our string. For this syntax to work, we must use back ticks to declare our string. Let&#8217;s take a look at a more complicated example:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>const multiLine = ((str, chars) =&gt; {\n   let mapped = chars.map(char =&gt; {\n     return `\n      \u2022 ${char.name} -- ${char.role}`\n   }).join('');\n  return `${str}\n${mapped}`\n})\nlet characters = [\n  {name: &quot;Harry Potter&quot;, role: &quot;The Chosen One&quot;},\n  {name: &quot;Hermione Grainger&quot;, role: &quot;The Smart One&quot;},\n  {name: &quot;Ronald Weasley&quot;, role: &quot;The Funny One&quot;},\n  {name: &quot;Neville Longbottom&quot;, role: &quot;The Forgetful One&quot;}\n];\nlet string = &quot;The main characters in Harry Potter are:&quot;\nconsole.log(multiLine(string, characters));<\/pre><\/div>\n\n\n\n<p>Our code returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>The main characters in Harry Potter are:\n\n      \u2022 Harry Potter -- The Chosen One\n      \u2022 Hermione Grainger -- The Smart One\n      \u2022 Ronald Weasley -- The Funny One\n      \u2022 Neville Longbottom -- The Forgetful One<\/pre><\/div>\n\n\n\n<p>One thing to note with the template literal is that it will observe all white space and carriage returns.<\/p>\n\n\n\n<p>You can read more about JavaScript literals in our <a href=\"https:\/\/careerkarma.com\/blog\/javascript-string-interpolation\/\">JavaScript string interpolation guide<\/a>.<\/p>\n\n\n\n<p>That\u2019s all there is to it! You now have the ability to write JavaScript multi line strings in both ES6 and ES5 syntax!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>There are three ways to create a multiline string in JavaScript. We can use the concatenation operator, a new line character (\\n), and template literals. Template literals were introduced in ES6. They also let you add the contents of a variable into a string.<\/p>\n\n\n\n<p>Do you want to learn more about JavaScript? Check out our complete <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-javascript\/\">How to Learn JavaScript guide<\/a>. You&#8217;ll find expert advice and guidance on top courses, books, and online resources in this guide.<\/p>\n","protected":false},"excerpt":{"rendered":"You can create a JavaScript multiline string using new line characters, concatenation, and template string literals. Template string literals are the most modern syntax and also let you embed variables into a string. Have you ever wanted to span a string across multiple lines of text? I would not be surprised. This is a very&hellip;","protected":false},"author":77,"featured_media":22502,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11933],"tags":[],"class_list":{"0":"post-22501","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.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>JavaScript: Multi Line Strings | Career Karma<\/title>\n<meta name=\"description\" content=\"Learn how to create multi line strings in JavaScript using newlines and template string literals in this article by 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-multi-line-strings\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript: MultiLine Strings Using \\n and Template Literals\" \/>\n<meta property=\"og:description\" content=\"Learn how to create multi line strings in JavaScript using newlines and template string literals in this article by Career Karma.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/\" \/>\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-12-18T00:25:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-18T08:14:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/fotis-fotopoulos-LJ9KY8pIH3E-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=\"Christina Kopecky\" \/>\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=\"Christina Kopecky\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-multi-line-strings\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-multi-line-strings\\\/\"},\"author\":{\"name\":\"Christina Kopecky\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/ae0cdc4a5d198690d78482646894074e\"},\"headline\":\"JavaScript: MultiLine Strings Using \\\\n and Template Literals\",\"datePublished\":\"2020-12-18T00:25:48+00:00\",\"dateModified\":\"2020-12-18T08:14:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-multi-line-strings\\\/\"},\"wordCount\":642,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-multi-line-strings\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/fotis-fotopoulos-LJ9KY8pIH3E-unsplash.jpg\",\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-multi-line-strings\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-multi-line-strings\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-multi-line-strings\\\/\",\"name\":\"JavaScript: Multi Line Strings | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-multi-line-strings\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-multi-line-strings\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/fotis-fotopoulos-LJ9KY8pIH3E-unsplash.jpg\",\"datePublished\":\"2020-12-18T00:25:48+00:00\",\"dateModified\":\"2020-12-18T08:14:14+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/ae0cdc4a5d198690d78482646894074e\"},\"description\":\"Learn how to create multi line strings in JavaScript using newlines and template string literals in this article by Career Karma.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-multi-line-strings\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-multi-line-strings\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-multi-line-strings\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/fotis-fotopoulos-LJ9KY8pIH3E-unsplash.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/fotis-fotopoulos-LJ9KY8pIH3E-unsplash.jpg\",\"width\":1020,\"height\":680,\"caption\":\"Two black flat screen computer monitors\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-multi-line-strings\\\/#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: MultiLine Strings Using \\\\n and Template Literals\"}]},{\"@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\\\/ae0cdc4a5d198690d78482646894074e\",\"name\":\"Christina Kopecky\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-3-150x150.jpg\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-3-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/image-3-150x150.jpg\",\"caption\":\"Christina Kopecky\"},\"description\":\"Christina is an experienced technical writer, covering topics as diverse as Java, SQL, Python, and web development. She earned her Master of Music in flute performance from the University of Kansas and a bachelor's degree in music with minors in French and mass communication from Southeast Missouri State. Prior to joining the Career Karma team in June 2020, Christina was a teaching assistant, team lead, and section lead at Lambda School, where she led student groups, performed code and project reviews, and debugged problems for students. Christina's technical content is featured frequently in publications like Codecademy, Repl.it, and Educative.\",\"sameAs\":[\"http:\\\/\\\/www.linkedin.com\\\/in\\\/cmvnk\"],\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/author\\\/christina-kopecky\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"JavaScript: Multi Line Strings | Career Karma","description":"Learn how to create multi line strings in JavaScript using newlines and template string literals in this article by 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-multi-line-strings\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript: MultiLine Strings Using \\n and Template Literals","og_description":"Learn how to create multi line strings in JavaScript using newlines and template string literals in this article by Career Karma.","og_url":"https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-12-18T00:25:48+00:00","article_modified_time":"2020-12-18T08:14:14+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/fotis-fotopoulos-LJ9KY8pIH3E-unsplash.jpg","type":"image\/jpeg"}],"author":"Christina Kopecky","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"Christina Kopecky","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/"},"author":{"name":"Christina Kopecky","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/ae0cdc4a5d198690d78482646894074e"},"headline":"JavaScript: MultiLine Strings Using \\n and Template Literals","datePublished":"2020-12-18T00:25:48+00:00","dateModified":"2020-12-18T08:14:14+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/"},"wordCount":642,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/fotis-fotopoulos-LJ9KY8pIH3E-unsplash.jpg","articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/","url":"https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/","name":"JavaScript: Multi Line Strings | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/fotis-fotopoulos-LJ9KY8pIH3E-unsplash.jpg","datePublished":"2020-12-18T00:25:48+00:00","dateModified":"2020-12-18T08:14:14+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/ae0cdc4a5d198690d78482646894074e"},"description":"Learn how to create multi line strings in JavaScript using newlines and template string literals in this article by Career Karma.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/fotis-fotopoulos-LJ9KY8pIH3E-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/09\/fotis-fotopoulos-LJ9KY8pIH3E-unsplash.jpg","width":1020,"height":680,"caption":"Two black flat screen computer monitors"},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/javascript-multi-line-strings\/#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: MultiLine Strings Using \\n and Template Literals"}]},{"@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\/ae0cdc4a5d198690d78482646894074e","name":"Christina Kopecky","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/image-3-150x150.jpg","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/image-3-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/image-3-150x150.jpg","caption":"Christina Kopecky"},"description":"Christina is an experienced technical writer, covering topics as diverse as Java, SQL, Python, and web development. She earned her Master of Music in flute performance from the University of Kansas and a bachelor's degree in music with minors in French and mass communication from Southeast Missouri State. Prior to joining the Career Karma team in June 2020, Christina was a teaching assistant, team lead, and section lead at Lambda School, where she led student groups, performed code and project reviews, and debugged problems for students. Christina's technical content is featured frequently in publications like Codecademy, Repl.it, and Educative.","sameAs":["http:\/\/www.linkedin.com\/in\/cmvnk"],"url":"https:\/\/careerkarma.com\/blog\/author\/christina-kopecky\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/22501","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\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=22501"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/22501\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/22502"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=22501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=22501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=22501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}