1. Write a JavaScript string that says: Tom Hanks did a fine job in his recent E
ID: 3911009 • Letter: 1
Question
1. Write a JavaScript string that says:
Tom Hanks did a fine job in his recent Eastwood movie "Sully", however the reviews say the film is a fairly big letdown of Eastwood's movies :)
2. What attribute should you use to stop the browser from saving or caching data in the following form?
<form method="post" action="/form"> <!-- [...] --> </form>
3. Create and assign a variable, then write an "if...else" statement with the following information:
-The variable of time is equal to 17
-If the time is less than 12, then write an alert statement that says "AM"
-Else, write an alert statement that says "PM"
Explanation / Answer
//////////////////// var s= 'Tom Hanks did a fine job in his recent Eastwood movie "Sully", however the reviews say the film is a fairly big letdown of Eastwood's movies :)'; //////////////////// //////////////////// var time = 17; if(time < 12) { alert('AM'); } else { alert('PM'); }Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.