I am having trouble with the following assigment I believe I\'m close but for so
ID: 3731001 • Letter: I
Question
I am having trouble with the following assigment I believe I'm close but for some reason when I open it just shows NASA style countdown at the top of the browser.just trying to find out if there something I'm missing. Thanks for any help
The purpose of the assignment is to demonstrate your ability to use operators and flow control logic, and to create a function which accepts an input parameter, and uses the data passed to the function.
Create two files, one named third.html and the other named third.js
Write code to create a web page that uses a JavaScript program to output a NASA style count down:
Ten
Nine
…
One
Ignition Start
Liftoff
We have Liftoff!
Each line must be displayed in the browser window.
An alert must be used to control when the next line is displayed.
Create a generic function that outputs one line of the countdown 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.
Please note that you are outputting the countdown to the browser window this time, not to an alert! The alert is only being used to signal when to output the next line.
The program should have fewer lines of code than assignment 2. Hint: use a loop when displaying the numeric part of the countdown. You can output the countdown numbers as before or as digits (Ten or 10, Nine or 9, etc.)
Explanation / Answer
Explation is given within comments itself.
Html
JavaScript
Please commnet me if you need any help for this. Thanks.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.