JS-Dev-101 Exam Question 86

A developer receives a comment from the Tech Lead that the code given below has error:
const monthName = 'July';
const year = 2019;
if(year === 2019) {
monthName ='June';
}
Which line edit should be made to make this code run?
  • JS-Dev-101 Exam Question 87

    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?

    JS-Dev-101 Exam Question 88

    Refer to the code below:

    Line 05 causes an error. What are the values of greeting and salutation once code completes?
  • JS-Dev-101 Exam Question 89

    Which code statement correctly retrieves and returns an object from localStorage?
  • JS-Dev-101 Exam Question 90

    Given the following code:
    Let x =null;
    console.log(typeof x);
    What is the output of the line 02?