Correct Answer : app.onerror(err)
Explanation : app.onerror(err) technique is used to deal with errors in the programme.
app.onerror(err)