I am just beginner to javascript. I ought to replace blablabla with a code which output the following
There are 7 days in a week.
In programming, the index of Sunday tends to be 0.
Here is the code
const weekday = (function() {
const names = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
**blablabla**
})();
var num = 0;
console.log("There are " + weekday.count() + " days in a week.");
console.log("In programming, the index of " + weekday.name(num) + " tends to be " + weekday.number(weekday.name(num)) + ".");
Thanks and Regards,