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
10 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
12 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
15 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
16 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
20 days ago
Hmm, you might be right. Let's see what others think before we make our final choice.
upvoted 0 times
...
Leslie
21 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
24 days ago
I think the answer is A, it looks like the correct code for a custom getter.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77