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 3 Question 67 Discussion

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

Refer to the following code:

What will the console show when the button is clicked?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Carry
2 days ago
I'm with Erick on this one. D all the way, baby! Though I do wonder if the answer key has a sense of humor. Maybe they'll throw in a 'Banana message' just to mess with us.
upvoted 0 times
...
Erick
15 days ago
Oh, I got this! It's gotta be D, 'Inner message'. The event listener is on the button, so the console should only show the inner message.
upvoted 0 times
...
Haydee
15 days ago
Maybe it will show both Inner message and Outer message.
upvoted 0 times
...
Ammie
16 days ago
I believe it will show Outer message.
upvoted 0 times
...
Haydee
18 days ago
I think the console will show Inner message.
upvoted 0 times
...
Golda
18 days ago
Hmm, this one's a tricky one. I'm thinking B, 'Outer messageInner message'. That stopPropagation() method should keep the click event from bubbling up to the outer div, right?
upvoted 0 times
...

Save Cancel