• repeat()
    • Description: Returns a new string with a specified number of copies of an existing string.

    • Example:

      let str = 'Hello';
      console.log(str.repeat(3)); // Output: 'HelloHelloHello'