Question: Question 2 Write JavaScript codes, prompt (with the prompt function) the user to enter two strings and then alert (with the alert function) which string

 Question 2 Write JavaScript codes, prompt (with the prompt function) the

Question 2 Write JavaScript codes, prompt (with the prompt function) the user to enter two strings and then alert (with the alert function) which string has the longest length. If they are equal in length, then alert both string For example, if the user enters: "abc" and "defg", then "defg" will be alerted; but if the user enters: "abc" and "def" then the user will see "abc" as well as "def" as alert boxes. For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). BI U s S Paragraph V Arial 14px iii A V Ty 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!