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));
Escuela, estudio y materia
- Institución
- Salesforce JavaScript Developer
- Grado
- Salesforce JavaScript Developer
Información del documento
- Subido en
- 15 de mayo de 2024
- Número de páginas
- 6
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
salesforce certified javascript developer sp22 e
Documento también disponible en un lote