Is the text correct?

Report a typo

Complete the creation of the checkingText function that returns a Promise. The function should:

  • Resolve the promise with the message Your text is correct if the provided status is success.

  • Reject the promise with the message Your text is incorrect if the status is fail.

Write a program in JavaScript
const checkingText = (status) => {
// write your code here


}
___

Create a free account to access the full topic