ExamGecko
Question list
Search
Search

List of questions

Search

Question 206 - Certified B2B Commerce Administrator discussion

Report
Export

Which practice is allowed when it comes to naming a Lightning web component's folder and associated files?

A.
Including whitespace
Answers
A.
Including whitespace
B.
Using a single underscore
Answers
B.
Using a single underscore
C.
Using consecutive underscores
Answers
C.
Using consecutive underscores
D.
Using a single hyphen (dash)
Answers
D.
Using a single hyphen (dash)
Suggested answer: B

Explanation:

Using a single underscore because this is allowed when it comes to naming a Lightning web component's folder and associated files.However, it is not recommended because it does not map to kebab case in markup, which is the convention for web components2. The other options are incorrect because they violate the naming rules for Lightning web components.The folder and its files must follow these naming rules3:

Must begin with a lowercase letter

Must contain only alphanumeric or underscore characters

Must be unique in the namespace

Can't include whitespace

Can't end with an underscore

Can't contain two consecutive underscores

Can't contain a hyphen (dash)

asked 23/09/2024
Mustafa Hussien
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first