Skip to content

Glossary: JavaScript Basics

repeat

Also written: "#".repeat

A string method that gives the string repeated a number of times, such as `"=".repeat(40)` for a line of 40 equals signs.

Where the book teaches it

Related terms

StringMethod