javascript how to make a saying repeat 20 times code example Example: JavaScript repeat character var a="a"; var aaa=a.repeat(3); // "aaa"