DEV Community

loading...

Discussion on: Daily Challenge #40 - Counting Sheep

Collapse
kvharish profile image
K.V.Harish

My solution in js

const murmur = (times) => Array(times).fill()
                                      .map((value, index) => `${index+1} sheep...`)
                                      .join(' ');