Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Javascript Developer I Topic 2 Question 63 Discussion

Actual exam question for Salesforce's Javascript Developer I exam
Question #: 63
Topic #: 2
[All Javascript Developer I Questions]

Refer to the HTML below:

Which JavaScript statement results in changing '' The Lion.''?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Daniel
1 months ago
Hey, is anyone else seeing a typo in option D? 'innerHTML =' instead of 'innerHTML ='? Gotta love those subtle traps!
upvoted 0 times
Wenona
14 hours ago
I think the correct answer is C) document.querySelector('$main li.Tony').innerHTML = ''' The Lion '
upvoted 0 times
...
Julianna
5 days ago
Yeah, I noticed that too. Sneaky mistake!
upvoted 0 times
...
...
Oliva
1 months ago
Ah, the good old 'nth-child' trick! I'm gonna go with D, it looks the most straightforward.
upvoted 0 times
Dusti
5 days ago
User 3: I agree, D looks straightforward.
upvoted 0 times
...
Sage
10 days ago
User 2: Yeah, D seems like the right choice.
upvoted 0 times
...
Maile
27 days ago
User 1: I think D is the correct answer.
upvoted 0 times
...
...
Elli
2 months ago
Hmm, 'li.Tony' makes sense, but the spacing in the answer seems a bit off. Let me double-check that.
upvoted 0 times
Shawnda
20 days ago
But the spacing in the answer does look a bit off.
upvoted 0 times
...
Alaine
21 days ago
I agree, 'li.Tony' seems like the right selector.
upvoted 0 times
...
Bo
1 months ago
I think option C) is correct.
upvoted 0 times
...
...
Erick
2 months ago
I'm not sure, but I think option B could also be correct.
upvoted 0 times
...
Carol
2 months ago
I agree with Dacia, option C makes sense.
upvoted 0 times
...
Dacia
2 months ago
I think the correct answer is C.
upvoted 0 times
...
Carry
2 months ago
Wait, what? '$main $TONY'? That's not a valid CSS selector, right? I'm gonna have to go with option C here.
upvoted 0 times
Hui
1 months ago
Yeah, I agree. '$main $TONY' doesn't seem like a valid CSS selector.
upvoted 0 times
...
Felix
1 months ago
I think you're right, option C seems like the correct choice.
upvoted 0 times
...
...
Sherell
2 months ago
But C selects the element with class Tony, which is what we need to change.
upvoted 0 times
...
Daniel
2 months ago
I disagree, I believe the correct answer is B.
upvoted 0 times
...
Sherell
2 months ago
I think the answer is C.
upvoted 0 times
...

Save Cancel