Skip to content

Commit

Permalink
day 147
Browse files Browse the repository at this point in the history
  • Loading branch information
jwardoin committed Aug 22, 2022
1 parent aeabb62 commit 5162783
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions kataExampleTwist.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This is an easy twist to the example kata (provided by Codewars when learning how to create your own kata).

// Add the value "codewars" to the array websites/Websites 1,000 times.

// my original solution

const websites = Array.from({ length: 1000 }, () => 'codewars');

// what I learned from others' solutions

const websites2 = new Array(1000).fill('codewars');

0 comments on commit 5162783

Please sign in to comment.