ExamGecko
Question list
Search
Search

List of questions

Search

Question 188 - Certified B2B Commerce Administrator discussion

Report
Export

Northern Tail Qutfitters (NTO) is converting an existing aura component into a Lightning Web Component. The aur a. Exam Timer component has the following source code:

What is the equivalent of this code in a Lightning Web Component?

A)

B)

C)

D)

A.
Option A
Answers
A.
Option A
B.
Option B
Answers
B.
Option B
C.
Option C
Answers
C.
Option C
D.
Option D
Answers
D.
Option D
Suggested answer: A

Explanation:

The equivalent of the code in a Lightning Web Component is Option A. This is because the <template> tag is used in a Lightning Web Component to define the HTML structure of the component. The <c-child> tag is used to include a child component in the parent component. The <c-child first-name=''{fName}''> tag is used to pass data from the parent component to the child component using a public property called firstName. The @api decorator in the child component indicates that the firstName property is public and can be set by the parent component. The {firstName} expression in the child component template renders the value of the firstName property.Reference:Communicate with Events,Pass Data to Child Components

asked 23/09/2024
Luyanda Hatta
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first