Which two options could a developer insert at the placeholder in line 02 to achieve this?

Refer to the code below:

const event = new CustomEvent(

//Missing Code

);

obj.dispatchEvent(event);

A developer needs to dispatch a custom event called update to send information about recordId.

Which two options could a developer insert at the placeholder in line 02 to achieve this? Choose 2 answers
A . ‘Update’, (
recordId : ‘123abc’
(
B. ‘Update’, ‘123abc’
C. { type : ‘update’, recordId : ‘123abc’ }
D. ‘Update’, {
Details : {
recordId : ‘123abc’
}
}

Answer: A,D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments