Answer to Question #172068 in HTML/JavaScript Web Application for mani

Question #172068

Gardening

We have a task to do Gardening.

Given two boolean values

isGrassTrimmerFound and isWaterHosePipeFound as inputs, create three JS promises using async/await and try/catch blocks. 


/* Please do not modify anything above this line */


function main() {

 const isGrassTrimmerFound = JSON.parse(readLine());

 const isWaterHosePipeFound = JSON.parse(readLine());


 /* Write your code here */


 const myPromise = async () => {

  try {

   

   /* Write your code here */

    

  } catch(error) {


   /* Write your code here */

    

  }

 };

  

 myPromise();

}



1
Expert's answer
2021-03-16T16:38:00-0400
Dear mani, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS