Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function repeatDemo() {
const texts = Array(5)
.fill()
.map(_ => "I love your smile");
texts.map(text => WriteLine(text));
}
@Sylvain2703
Copy link

Sylvain2703 commented Jun 15, 2021

Thanks for your great blog post.

This demo can be a little bit improved:

const texts = Array(5)
  .fill("I love your smile");

@dance2die
Copy link
Author

dance2die commented Jun 15, 2021

Thanks for your great blog post.

This demo can be a little bit improved:

const texts = Array(5)
  .fill("I love your smile");

Yw! and wow 😮 that's much better! ty for sharing~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment