$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #154

Fill the blank

// a divider line of 20 dashes
const line = '-'.____(20);

Answer: repeat (also accepted: repeat, repeat())

repeat(n) returns the string joined to itself n times.
Play Problem Solving ▸