Concatenating Strings

Concatenating Strings
0.0 0

#1

Concatenating Strings
Tell us what’s happening:
Condition: myStr should have a value of This is the start. This is the end.
.
.
.
.
Below is my javaScript code:

// Example
var ourStr = "I come first. " + "I come second.";

// Only change code below this line

var myStr = "This is the start." + "This is the end.";

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-plus-operator


#2

I did not checked the challenge itself ( since you haven’t linked it :stuck_out_tongue: ) but, just wondering, is there a space between the final dot of the first sentence and the quote?


#3

You need a space dude after ...start " or before " This..


#4

It’s concatenating of 2 strings and i did tried by adding space but it’s still not working.


#5

have you tried refreshing your browser? and starting the challenge again?


#6

Its not working I tried.


#7

yes Still not working


#8

have you tried using a different browser? or could you post your code?


#9

Correct Code:
// Example
var ourStr = "I come first. " + “I come second.”;

// Only change code below this line

var myStr="This is the start. " + “This is the end.”;


#10

I tried the exact code in my browser and it passed without any problems. This is what I typed.
var myStr = "This is the start. " + "This is the end.";

Are you using ‘chrome’?


#11

you might need to put a space between the assignment operator like this myStr = "This because freecodecamp is very picky with everything.


#12

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.