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();
}
Comments
Leave a comment