Comments

j4r8 months ago

const solve = (strOne, strTwo) => { return strOne+strTwo; }; Why not this answer people?

Dacey Nolana year ago

It is not allowing me to submit my answers :(

dbpa year ago

python not working?

Internal Bacon Polariseda year ago

With python you can write with the following code

class Solution: def solve(self, str_one, str_two): return str_one + str_two

or

class Solution: def solve(self, str_one, str_two): return ''.join([str_one, str_two])

Mohamed El Ghannay2 years ago

i ve used the concat method is it ok for a solution or should we avoid them ?

const solve = (strOne, strTwo) => { return strOne.concat(strTwo); };

Amit Gupta5 months ago

It seems concat() method is slower than + or += operator. Take a look at their benchmarks.

DennisLoska2 years ago

This is a test-comment with my solution:

const solve = (strOne, strTwo) => ${strOne}${strTwo};

Stephen Grider2 years ago

With multiline codeblock:

const solve = (strOne, strTwo) => `${strOne}${strTwo}`;

DennisLoska2 years ago

const solve = (strOne, strTwo) => `${strOne + strTwo}`;

Yes I think that's better.