CIW
1D0-635 · Question #47
1D0-635 Question #47: Real Exam Question with Answer & Explanation
Sign in or unlock 1D0-635 to reveal the answer and full explanation for question #47. The question stem and answer options stay visible for context.
Question
You want to add a personalized interaction with your users when they enter your Web site. To do this, you can display a JavaScript prompt on the home page that asks the user to enter her name. When the user enters text and clicks the OK button, an alert dialog box will appear and display the text "Welcome, name" (where name is the text entered by the user). Which choice shows the correct JavaScript code for this action?
Options
- Aalert("Welcome, " + prompt("What is your name?", ""));
- Balert("Welcome, ") + prompt("What is your name?", "");
- Cprompt("What is your name?", "") + alert("Welcome, ");
- Dprompt("What is your name?", "" + alert("Welcome, "));
Unlock 1D0-635 to see the answer
You've previewed enough free 1D0-635 questions. Unlock 1D0-635 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.