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 2 Question 40 Discussion

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

Which two blocks of code are needed to implement a custom getter in a Lightning web component?

A)

B)

C)

D)

Show Suggested Answer Hide Answer
Suggested Answer: A, C

Contribute your Thoughts:

Helaine
9 days ago
Hmm, this is a tricky one. I'm going to go with Option B, but I'll double-check the documentation just to be sure.
upvoted 0 times
...
India
11 days ago
Haha, I'm always a sucker for custom getters. Option A seems like a doozy, but I bet the exam writers are trying to trip us up with that one.
upvoted 0 times
...
Sol
14 days ago
I'm not sure, but I think Option C might also work. The getter is defined in the JavaScript, and the template references it.
upvoted 0 times
...
Dana
15 days ago
Option B looks like the correct answer. The custom getter is defined in the JavaScript file, and the reference to it is in the HTML template.
upvoted 0 times
...
Tasia
19 days ago
Hmm, you might be right. Let's see what others think before we make our final choice.
upvoted 0 times
...
Leslie
20 days ago
I disagree, I believe the answer is C because it seems to be the right syntax for a custom getter.
upvoted 0 times
...
Tasia
23 days ago
I think the answer is A, it looks like the correct code for a custom getter.
upvoted 0 times
...

Save Cancel