Salesforce Certified JavaScript Developer (SP22) Exam Questions With 100% Correct Answers
Salesforce Certified JavaScript Developer (SP22) Exam Questions With 100% Correct Answers Refer to the code below: Let foodMenu1 = ['pizza', 'burger', 'French fries'];Let finalMenu = foodMenu1; finalM('Garlic bread'); What is the value of foodMenu1 after the code executes? A [ 'pizza','Burger', 'French fires', 'Garlic bread'] B [ 'pizza','Burger', 'French fires'] C [ 'Garlic bread' , 'pizza','Burger', 'French fires' ] D [ 'Garlic bread'] - answerB Which statement accurately describes an aspect of promises? A In () function, returning results is not necessary since callbacks will catch the result of a previous promise. B .then() cannot be added after a catch. C Arguments for the callback function passed to .then() are optional. D .then() manipulates and returns the original promise. - answerC A developer is wondering whether to use, Promise, then or P, especially when promise throws an error. Which two promises are rejected? A. Pt('cool error here').then(error => (error)); B. New Promise(() => (throw 'cool error here'}).then(null, error => (error))); C. New Promise((resolve, reject) => (throw 'cool error here'}).catch(error => (error));
Written for
- Institution
- Salesforce JavaScript Developer
- Course
- Salesforce JavaScript Developer
Document information
- Uploaded on
- May 23, 2024
- Number of pages
- 6
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
salesforce certified javascript developer sp22 e
Also available in package deal