Answer and Explanation:
Using javascript:
var play;
function AllWorkNoPlay(){
Console.log("All work and no play makes Jack a dull boy");
play++
If(play<=1000){
AllWorkNoPlay()
}
else(
return;
)
}
AllWorkNoPlay()
From the above we have defined a function that uses recursive function to print "All work and no play makes Jack a dull boy" to the console 1000 times and not more than that. We have called the function after that.