8 kyu

ES6 string addition

9,739 of 9,741Peter Rhodes

Description:

It is easy to join two strings together like this string1 + string2.

Another way to get the desired result would be with string1.concat(string2)

ES6 has introduced another way of joining strings. Your task is to find out what this is and write a function that will add two strings together, there must be a space between the two strings.

+ , .concat() & .join() will not be allowed in this exercise. I have also removed some other methods that can be used to cheat!

If one of the arguments is a number your code must coerce it into being a string.

Strings
Fundamentals

Stats:

CreatedNov 18, 2016
PublishedNov 21, 2016
Warriors Trained11951
Total Skips172
Total Code Submissions20281
Total Times Completed9741
JavaScript Completions9739
CoffeeScript Completions18
Total Stars94
% of votes with a positive feedback rating93% of 1696
Total "Very Satisfied" Votes1498
Total "Somewhat Satisfied" Votes169
Total "Not Satisfied" Votes29
Total Rank Assessments10
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • Peter Rhodes Avatar
  • JohanWiltink Avatar
  • Madjosz Avatar
  • LosBlobbos Avatar
Ad