What will be the output of the following snippet and why?
new Promise((resolve,reject) => resolve(10)) .then(data=>data*2) .then(data=>{throw Error(\