Repeat Text
Repeat Text
repeat creates a new string by repeating another string a chosen number of times. That lets generated text follow the size of other content.
Your task: Create divider from hyphens. It should be the same length as the provided title. Log the divider.
Free with a JS Exercises account
Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.
By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.
Repeat Text
repeat creates a new string by repeating another string a chosen number of times. That lets generated text follow the size of other content.
Your task: Create divider from hyphens. It should be the same length as the provided title. Log the divider.