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));
Geschreven voor
- Instelling
- Salesforce JavaScript Developer
- Vak
- Salesforce JavaScript Developer
Documentinformatie
- Geüpload op
- 15 mei 2024
- Aantal pagina's
- 6
- Geschreven in
- 2023/2024
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
-
salesforce certified javascript developer sp22 e
Ook beschikbaar in voordeelbundel