Consider the following code snippet: When the component is deployed, an error is reported. Which two changes should the developer implement in the code to ensure the component deploys successfully? (Choose two.)

QuestionsCategory: Certified Platform Developer IIConsider the following code snippet: When the component is deployed, an error is reported. Which two changes should the developer implement in the code to ensure the component deploys successfully? (Choose two.)
Admin Staff asked 4 months ago
Consider the following code snippet:
 Image
When the component is deployed, an error is reported.
Which two changes should the developer implement in the code to ensure the component deploys successfully? (Choose two.)

A. import getOrders from '@salesforce/apex/OrderController.getAvailableOrders';

B. import getOrders from '@salesforce/apex/c.OrderController.getAvailableOrders';

C. import { LightningElement, api ) from 'lwc';

D. import { LighningElement, wire } from 'lwc';








 

Suggested Answer: AD

Community Answer: AD



This question is in Certified Platform Developer II Exam
For getting Salesforce Certified Platform Developer II











Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Salesforce. 
Trademarks, certification & product names are used for reference only and belong to Salesforce.
The website does not contain actual questions and answers from Salesforce's Certification Exams.

Next Post

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.