June 8th Codewar

·

1 min read

I was able to do this codewar while waiting for our room to be ready. I tell my sister (who also codes), "this codewar was simple not a hard one." She always tells me, "stop saying they are simple because they are not. Not everyone can do them so stop degrading your ability". I love her so much!

This codewar we just needed to debug it and make sure the output was what they wanted. This is my solution,

function sayHello(name) {
  //made each one into a variable to be able to concat together using .concat
    const stringOne = 'Hello,'
    const stringTwo = stringOne.concat(' ', `${name}`);
   //asked to return stringTwo
    return stringTwo
  }

Until the next one!