| Exam Name: | Salesforce Certified JavaScript Developer (JS-Dev-101) | ||
| Exam Code: | JavaScript-Developer-I Dumps | ||
| Vendor: | Salesforce | Certification: | Salesforce Developer |
| Questions: | 147 Q&A's | Shared By: | harlen |
Given the code below:
01 setTimeout(() = > {
02 console.log(1);
03 }, 1100);
04 console.log(2);
05 new Promise((resolve, reject) = > {
06 setTimeout(() = > {
07 reject(console.log(3));
08 }, 1000);
09 }).catch(() = > {
10 console.log(4);
11 });
12 console.log(5);
What is logged to the console?
01 function Monster() { this.name = ' hello ' ; };
02 const m = Monster();
What happens due to the missing new keyword?
Refer to the code below:
flag();
function flag() {
console.log( ' flag ' );
}
const anotherFlag = () = > {
console.log( ' another flag ' );
}
anotherFlag();
What is result of the code block?
HTML:
< p > The current status of an Order: < span id= " status " > In Progress < /span > < /p >
Which JavaScript statement changes ' In Progress ' to ' Completed ' ?