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 73 Discussion

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

What is one requirement to keep in mind when including additional JavaScript 1h files in a Lightning Web Component?

Show Suggested Answer Hide Answer
Suggested Answer: A

When including additional JavaScript files in a Lightning Web Component, it is required that these files are ECMAScript 6 (ES6) modules and have unique names within the component's folder. This ensures proper module resolution and avoids namespace conflicts. Salesforce LWC documentation provides guidelines on organizing component resources, including JavaScript modules, to ensure they are correctly recognized and utilized within the LWC framework.


Contribute your Thoughts:

Percy
6 days ago
C) All the files must be imported to a singleton.js file and the singleton.js file can be used with an import statement. I like this approach because it keeps everything tidy and centralized.
upvoted 0 times
...
Mabel
7 days ago
A) The files must be ES6 modules and must have names that are unique within the component's folder. That's the only way to keep things organized and avoid naming conflicts.
upvoted 0 times
...
Margery
11 days ago
I believe option A is the most logical choice because it makes sense for the files to be unique within the component's folder.
upvoted 0 times
...
Jade
12 days ago
I'm not sure, but I think option C is also a possibility.
upvoted 0 times
...
Izetta
14 days ago
I agree with India, option A seems like the correct answer.
upvoted 0 times
...
India
16 days ago
I think the requirement is that the files must be ES6 modules and have unique names.
upvoted 0 times
...

Save Cancel