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
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: