Java script question using for loops and functions : create a generic function that outputs one line of the countdown (ten,nine,eight, seven etc.) on the web page, followed by an alert, and receives the data to output as an input parameter. Use that function to output each line of the countdown, and an alert.

i need to output the countdown to the browser window and an alert is only being used to signal when to output the next line. 

i need to use a loop. i also can't use an array

thanks!