functioncs(n){if(typeofn!="number"&&n<0)return`${n} is not a valid number`;lettext="";for(letx=0;x<n;x++){text+=`${x} sheep... `}returntext;}cs(3)// 0 sheep... 1 sheep... 2 sheep...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
JavaScript