ExamGecko
Question list
Search
Search

List of questions

Search

Question 11 - Certified B2B Commerce Administrator discussion

Report
Export

A developer has the task to create custom Lightning web components (LWCs). 04m 30s

Which two steps must a developer take when creating custom LWCs?

A.
ClonealWC.
Answers
A.
ClonealWC.
B.
Create an Apex class.
Answers
B.
Create an Apex class.
C.
Deploy a custom component.
Answers
C.
Deploy a custom component.
D.
Authorize an org for an SFDX project.
Answers
D.
Authorize an org for an SFDX project.
Suggested answer: C, D

Explanation:

To create custom Lightning web components, a developer needs to follow these steps:

Authorize an org for an SFDX project.This allows the developer to use Salesforce CLI commands to create, test, and deploy code to the org2.

Create a Lightning web component using Visual Studio Code or Salesforce CLI.A Lightning web component consists of a folder with three files: an HTML template file, a JavaScript file, and a metadata file3.

Deploy a custom component to the org using Visual Studio Code or Salesforce CLI.This makes the component available for use in the org4.

Optionally, test the component using Jest framework or browser tools4.Reference:Create Lightning Web Components,Build Lightning Web Components,Create a Hello World Lightning Web Component

asked 23/09/2024
Stefan Duerr
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first