Concatenating Strings with Plus Sign solution not working
See original GitHub issueDescribe your problem and how to reproduce it: As described in the linked forum posts, the correct solution is not passing one of the test.
- Go to lesson
- Paste in correct solution:
var myStr = "This is the start. " + "This is the end.";
- 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:
- Created 3 years ago
- Reactions:1
- Comments:13 (13 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@Sky020 @lasjorg Please feel free to review PR #38450.