lineSpace function not printing spaces

I cant figure out what Is missing but I am unable to print the spaces. The output prints the hashes but no spaces.

**//make a line of hashes**

 function makeLine(size){
      let hashes = ""
      for (let i = 0; i < size; i++){
        hashes = hashes + '#';
      return hashes;

**//repeat a string for given times function**

    function repeatStringNumTimes(str, num) {
      return str;
**//function to print spaces then number of hashes then spaces again**

    function makeSpaceLine(numSpaces,numChars){
      let lineSpace = " "
      return (repeatStringNumTimes(lineSpace, numSpaces) + makeLine(numChars) +  repeatStringNumTimes(lineSpace, numSpaces));


The main issue seems to be with repeatStringNumTimes() function, you are missing action from your num. I’d start there.
For mine I didn’t use a helper function I followed the logic I used for makeLine() & applied it to both arguments. I hope this helps!

Yeah that was the issue I was skipping right over that function action. thanks for you time.

1 Like