Discuss the below:
Q: Modify the display_alert() function to also display a line of the countdown on the web page. How to add the function that calls the document.write() function so that it can pass the parameter variable as an argument to the document.write() function
function display_alert (message){
window.alert(message); //
}
for (var count=1; count<14; count++) {
display_alert("Click ok to continue with the countdown.");
}
document.write("Ten
Nine
Eight
Seven
Six
Five
Four
Three
Two
One
Ignition Start
Liftoff
We have lift off!
");