The code that is used to count sheep aloud in Javascript is given as:
var countSheep = function (num){
//start with a counter i = 1
// increment i
// stop until i == num
// "interpolation" to insert variables
// return joint array
let smallArr = "";
for (let x = 1; x <= num; x++)
{
smallArr += `${x} sheep...`
}
return smallArr;
};
Read more about javascript here:
https://brainly.com/question/16698901
#SPJ1