ExamGecko
Question list
Search
Search

Question 215 - Certified B2B Commerce Developer discussion

Report
Export

Which two practices are allowed when it comes to naming a Lightning Web Components folder and associated files?

A.
Beginning with a lowercase letter
Answers
A.
Beginning with a lowercase letter
B.
Including whitespace
Answers
B.
Including whitespace
C.
Using a single hyphen (dash)
Answers
C.
Using a single hyphen (dash)
D.
Using a single underscore
Answers
D.
Using a single underscore
Suggested answer: A, C

Explanation:

When naming a Lightning Web Components folder and associated files, Salesforce best practices allow the name to begin with a lowercase letter and to use a single hyphen (dash) for compound names. Whitespace and underscores are not recommended in the naming convention. This is in line with web standards for custom elements. More details can be found in the Salesforce LWC documentation on naming conventions: Salesforce LWC Naming Conventions.

asked 23/09/2024
Darren Sloan
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first