New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CIW 1D0-735 Exam - Topic 1 Question 77 Discussion

Actual exam question for CIW's 1D0-735 exam
Question #: 77
Topic #: 1
[All 1D0-735 Questions]

Geraldine is creating a custom object to store user account data on her Web site. She has written the following code it is not working properly. What change should she make to enable the script to run correctly?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Lonny
3 months ago
Not sure about that, sounds like a quick fix but could break other stuff.
upvoted 0 times
...
Carmen
3 months ago
Wait, changing the function keyword? That seems odd.
upvoted 0 times
...
Caprice
3 months ago
Removing the this keyword sounds right too.
upvoted 0 times
...
Casie
4 months ago
Totally agree with that!
upvoted 0 times
...
Galen
4 months ago
I think she should add the parameters to the function definition.
upvoted 0 times
...
Kent
4 months ago
I vaguely recall something about function definitions needing to match their parameters. Is it possible that she needs to add those parameters?
upvoted 0 times
...
Belen
4 months ago
I'm not entirely sure, but changing `this` to `object` sounds familiar. I think that could be a solution.
upvoted 0 times
...
Jestine
4 months ago
I feel like we practiced a question similar to this where parameters were missing. Adding `username`, `password`, and `email` might be the right move.
upvoted 0 times
...
Nancey
5 months ago
I think I remember that the `this` keyword can be tricky in certain contexts. Maybe removing it could help?
upvoted 0 times
...
Angelica
5 months ago
I'm a bit confused by the different keywords used here. I'll carefully consider each option and try to understand the underlying concepts.
upvoted 0 times
...
Glendora
5 months ago
The function definition seems a bit off. I'm leaning towards option B to add the parameters, but I'll need to confirm that's the right solution.
upvoted 0 times
...
Ilene
5 months ago
Okay, I think I've got it. The issue is with the variable assignments. I'll try option A and see if that fixes it.
upvoted 0 times
...
Lilli
5 months ago
Hmm, the use of "this" keyword is throwing me off a bit. I'll need to double-check how it's supposed to be used in object creation.
upvoted 0 times
...
Dante
5 months ago
This looks like a tricky one. I'll need to carefully review the code and options to figure out the right approach.
upvoted 0 times
...
Kaycee
10 months ago
I bet Geraldine is wishing she had taken that Javascript class her coworker recommended. Looks like she's in for a long night of debugging.
upvoted 0 times
Torie
8 months ago
User 3: I agree with Torie, adding the parameters could fix it.
upvoted 0 times
...
Malinda
8 months ago
User 2: I think option B might be the solution.
upvoted 0 times
...
Dean
9 months ago
User 1: Maybe she should try option C?
upvoted 0 times
...
...
Arthur
10 months ago
Honestly, I have no idea. This question is making my head spin. Maybe Geraldine should just start over and use a pre-built user management system instead of trying to reinvent the wheel.
upvoted 0 times
Brett
8 months ago
I agree with you, option B) seems like the correct choice. She should add those parameters to the function definition.
upvoted 0 times
...
Mitsue
9 months ago
No, I believe she needs to add the parameters username, password, and email to the function definition. Option B) is the way to go.
upvoted 0 times
...
Frank
9 months ago
I think she should try option C) and change the this keyword to the object keyword.
upvoted 0 times
...
...
Benton
10 months ago
Hmm, I think the answer is A. Removing the 'this' keyword from the left side of the assignment variables should do the trick. Otherwise, how else would she assign the values?
upvoted 0 times
Beth
9 months ago
User3: I agree with User2, option C seems like the right choice here.
upvoted 0 times
...
Ernest
9 months ago
User2: No, I believe the correct answer is C. Changing 'this' to 'object' is the solution.
upvoted 0 times
...
Jesusita
9 months ago
User1: I think the answer is A. Removing the 'this' keyword should work.
upvoted 0 times
...
...
Remedios
10 months ago
I'm pretty sure the answer is C. Changing the 'this' keyword to 'object' will fix the issue. That's the only logical solution here.
upvoted 0 times
Coral
9 months ago
Let's go with option C then. It seems like the best choice.
upvoted 0 times
...
Karol
9 months ago
I don't think that's necessary. Changing 'this' to 'object' seems like the most straightforward solution.
upvoted 0 times
...
Ronna
9 months ago
But what about adding the parameters username, password, and email to the function definition?
upvoted 0 times
...
Gretchen
10 months ago
I think you're right. Changing 'this' to 'object' should do the trick.
upvoted 0 times
...
...
Marvel
10 months ago
The correct answer is B. She must add the parameters username, password, and email to the function definition. The script is trying to assign values to properties that don't exist in the function.
upvoted 0 times
Belen
10 months ago
C) She must change the this keyword to the object keyword on the left side of the assignment variables
upvoted 0 times
...
Janessa
10 months ago
A) She must remove the this keyword from the left side of the assignment variables
upvoted 0 times
...
...
Leigha
11 months ago
I think the answer is D) She must change the function keyword to the object keyword in the function definition. That makes more sense to me.
upvoted 0 times
...
Delmy
11 months ago
I disagree, I believe the correct answer is B) She must add the parameters username, password, and email to the function definition.
upvoted 0 times
...
Adolph
11 months ago
I think the correct answer is C) She must change the this keyword to the object keyword on the left side of the assignment variables.
upvoted 0 times
...

Save Cancel