question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Concatenating Strings with Plus Sign solution not working

See original GitHub issue

Describe your problem and how to reproduce it: As described in the linked forum posts, the correct solution is not passing one of the test.

  1. Go to lesson
  2. Paste in correct solution: var myStr = "This is the start. " + "This is the end.";
  3. See test fail

Add a Link to the page with the problem: https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-plus-operator

  • Browser Name: Chrome
  • Browser Version: 80.0.3987.149
  • Operating System: Windows 10

Linked Forum Posts: https://www.freecodecamp.org/forum/t/bug-javascript-concatenation/363779 https://www.freecodecamp.org/forum/t/concatenating-strings-with-plus-operator-bug/363780

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
RandellDawsoncommented, Mar 26, 2020

Update: There were only 42 files on that PR and only a few of the challenges were affected. Almost finished with the PR that will fix this mess. I also changed some of the tests to make them more robust at the same time.

0reactions
RandellDawsoncommented, Mar 26, 2020

@Sky020 @lasjorg Please feel free to review PR #38450.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can't I use an operator like plus sign to concatenate strings?
+ is the symbol for addition. Concatenation is not addition. Addition is commutative ( a + b == b + a ), concatenation...
Read more >
SQL Server concatenation not working with plus
I am attempting to concatenate two strings using "+", both these strings derive from a substring which have each been cast to varchar(20)...
Read more >
String Concatenation in C++: 4 Ways To Concatenate Strings
C++ '+' operator can be used to concatenate two strings easily. The '+' operator adds the two input strings and returns a new...
Read more >
4 Ways to Combine Strings in JavaScript | SamanthaMing.com
# 4 Ways to Combine Strings in JavaScript ; 1. Template Strings. Problem of Missing space in String concatenation; Resolved with Template Strings...
Read more >
6 Effective Ways To Concatenate Strings In C# - C# Corner
Syntax of string interpolation starts with a '$' symbol and code variables are within a bracket {}. The following code example in Listing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found