All interview questionsIn JavaScript, give an example of Promise rejection.IntermediateAnswerawait fetchData() can throw when the Promise rejects.