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
2 months 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
Ammie
1 months ago
User2: Yeah, I agree. Let's double-check the documentation just to be sure.
upvoted 0 times
...
Edelmira
1 months ago
User1: I think Option B is the correct one.
upvoted 0 times
...
...
India
2 months 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
2 months 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
Hailey
25 days ago
I think Option D might be the one to go with.
upvoted 0 times
...
Leanora
28 days ago
I'm leaning towards Option C as well.
upvoted 0 times
...
Tashia
1 months ago
I believe Option B is the right choice.
upvoted 0 times
...
Brianne
1 months ago
I think Option A is the correct one.
upvoted 0 times
...
...
Dana
2 months 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
2 months ago
Hmm, you might be right. Let's see what others think before we make our final choice.
upvoted 0 times
...
Leslie
2 months 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
2 months ago
I think the answer is A, it looks like the correct code for a custom getter.
upvoted 0 times
...

Save Cancel