Files
RobinNixon 53063593e3 Final
Final
2020-12-10 13:51:13 +00:00

24 lines
624 B
HTML

<script>
numbers = []
for (j=1 ; j<6 ; ++j)
{
if (j == 2 || j == 5)
{
document.write("Processing 'todo' #" + j + "<br>")
}
else
{
document.write("Putting off 'todo' #" + j + " until later<br>")
numbers.push(j)
}
}
document.write("<br>Finished processing the priority tasks.")
document.write("<br>Commencing stored tasks, most recent first.<br><br>")
document.write("Now processing 'todo' #" + numbers.pop() + "<br>")
document.write("Now processing 'todo' #" + numbers.pop() + "<br>")
document.write("Now processing 'todo' #" + numbers.pop() + "<br>")
</script>