Configuration

1
Console Output
>

String Transformation

Input String:
apple
Repeat Count:
3
Repeated String:
appleappleapple

Method Description

repeat(): Creates a new string by repeating the original string the specified number of times

Example: "Hello".repeat(3) → "HelloHelloHello"