Skip to content

Instantly share code, notes, and snippets.

@chris-sev
Last active December 5, 2018 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-sev/a22d8df7f2ff64422a7b012b1ced59bf to your computer and use it in GitHub Desktop.
Save chris-sev/a22d8df7f2ff64422a7b012b1ced59bf to your computer and use it in GitHub Desktop.
Quick Example
// 1. we have a string
const myString = 'hi there. ';
// 2. repeat over it 5 times
const repeatedString = myString.repeat(5);
// 3. output: hi there. hi there. hi there. hi there. hi there.
console.log(repeatedString);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment