1

My string must have 2 characters and the characters there are not filled must be left as blank spaces

let string = "  ";
string.unknownMethod("a");

What do I need to put into the unknownMethod function to get this output: " a"

I tried using the concat method but it concatenates to the end of the string

codemonkey
  • 7,325
  • 5
  • 22
  • 36

0 Answers0