Question 16
Refer to the code below:
Const pi = 3.1415326,
What is the data type of pi?
Const pi = 3.1415326,
What is the data type of pi?
Question 17
Refer to the code below:

When does promise. Finally on line 08 get called?

When does promise. Finally on line 08 get called?
Question 18
Refer to the expression below:
Let x = ('1' + 2) == (6 * 2);
How should this expression be modified to ensure that evaluates to false?
Let x = ('1' + 2) == (6 * 2);
How should this expression be modified to ensure that evaluates to false?
Question 19
Given the requirement to refactor the code above to JavaScript class format, which class definition is correct?


Question 20
Given the code below:
const delay = async delay =>{
return new Promise((resolve,reject)=>{
console.log(1);
setTimeout(resolve,deleay);
});
};
const callDelay = async ()=>{
console.log(2);
const yup = await delay(1000);
console.log(3);
}
console.log(4);
callDelay();
console.log(5);
What is logged to the console?
const delay = async delay =>{
return new Promise((resolve,reject)=>{
console.log(1);
setTimeout(resolve,deleay);
});
};
const callDelay = async ()=>{
console.log(2);
const yup = await delay(1000);
console.log(3);
}
console.log(4);
callDelay();
console.log(5);
What is logged to the console?
