Sascha Schulz
2023-07-18 06573ae2a55ee4911924c09bf41315d5e8bf8b60
1
2
3
4
5
6
7
const p = new Promise(function(resolve, reject) {
    reject(new Error("Fehler"));
});
 
p.catch(function(e) {
    console.log(e.message);
});