nerdexam
Microsoft

98-382 · Question #9

98-382 Question #9: Real Exam Question with Answer & Explanation

Sign in or unlock 98-382 to reveal the answer and full explanation for question #9. The question stem and answer options stay visible for context.

Question

You are creating a web page that requests a username. You create the following HTML form: ```html <form id="credentials" action="#" method="get"> <p>Username: <input type="text" id="username" /></p> <input type="button" onclick="getUsername()" value="Submit"> </form> ``` You need to write a function that retrieves the username from the form. How should you complete the code? To answer, drag the appropriate code segments to the correct locations. Each function may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point. Complete the following code: ```javascript function getUsername() { var username = _____ . _____ . credentials.username . _____ ; alert("Welcome, " + username); } ```

Unlock 98-382 to see the answer

You've previewed enough free 98-382 questions. Unlock 98-382 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 98-382 Practice