DEV Community

Discussion on: Some Useful JavaScript String Methods You May Not Know About

Collapse
 
benheimberg profile image
BenHeimberg

Hey!

In the String Repeat function there is a typo.

A is not defined, therefore it should be: const hello5 = hello.repeat(5);

Cherrs.

Collapse
 
aumayeung profile image
John Au-Yeung

Thanks for catching that. I'll fix this.