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 B2B Commerce Developer Topic 1 Question 41 Discussion

Actual exam question for Salesforce's B2B Commerce Developer exam
Question #: 41
Topic #: 1
[All B2B Commerce Developer Questions]

A developer used slots to pass content from one Lightning Web Component to another. How can they access the.

DOM for what was passed to those slots?

Show Suggested Answer Hide Answer
Suggested Answer: B, D, E

Contribute your Thoughts:

Twana
6 days ago
Option D seems a bit too specific with the id, I'll stick with the more generic this.template.querySelector().
upvoted 0 times
...
Tamra
9 days ago
I think option C is the way to go - using this.querySelector() and this.querySelectorAll() should do the trick.
upvoted 0 times
...
Rolande
11 days ago
Hmm, I wonder if passing an id to this.querySelector() in option B would work. Guess I'll give it a shot!
upvoted 0 times
...
Ashton
14 days ago
Option A looks promising, I'll try using this.template.querySelector() and this.template.querySelectorAll().
upvoted 0 times
...
Kent
17 days ago
I'm not sure, but I think it might be D) Call this.template.querySelector() passing an id.
upvoted 0 times
...
Alberto
21 days ago
I agree with Beatriz, because this.template is used to access the DOM of the component.
upvoted 0 times
...
Beatriz
24 days ago
I think the answer is A) Call this.template.querySelector() and this.template.querySelectorAll().
upvoted 0 times
...

Save Cancel