Created
April 21, 2018 21:24
-
-
Save dance2die/46fba8b00962893de1b8976d7d1d32b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function repeatDemo() { | |
const texts = Array(5) | |
.fill() | |
.map(_ => "I love your smile"); | |
texts.map(text => WriteLine(text)); | |
} |
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
Thanks for your great blog post.
This demo can be a little bit improved: