Any one tell me what i did wrong on ths one?

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


var ourStr = "I come First."+" I come second."; // Change 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/91.0.4472.77 Safari/537.36 Edg/91.0.864.41

Challenge: Concatenating Strings with Plus Operator

Link to the challenge:

You have an extra space in there.

One things I like to do when dealing with strings is to log it out with an “end markers” on it so I can catch problems like that.

Put:

console.log('***' + myStr + '***');

at the bottom of your code and see what I mean.

1 Like

thanks i thought it was a easy fix

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


var myStr ="I come first."+ "I come second."; // Change 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/91.0.4472.77 Safari/537.36 Edg/91.0.864.41

Challenge: Concatenating Strings with Plus Operator

Link to the challenge:

You removed two spaces, but one of them was needed. Look at the instructions closely:

Build myStr from the strings This is the start. and This is the end. using the + operator.

It is telling you exactly what output they want. Pay attention to the spaces. Part of being a developer is getting good at focussing on details.

i figured it out appreciate your help