We can repeat a string using the repeat method.
1 | const symbol = '*' |
This comes handy in case we want to put some symbols around the page.^_^
Tip:
.repeat(0)will return an empty string. So, by controlling the numbers we can decide whether to show those symbols or not.