diff --git a/1-js/06-advanced-functions/09-call-apply-decorators/article.md b/1-js/06-advanced-functions/09-call-apply-decorators/article.md index 685832e0..bec5639f 100644 --- a/1-js/06-advanced-functions/09-call-apply-decorators/article.md +++ b/1-js/06-advanced-functions/09-call-apply-decorators/article.md @@ -106,7 +106,7 @@ alert( worker.slow(1) ); // the original method works worker.slow = cachingDecorator(worker.slow); // now make it caching *!* -alert( worker.slow(2) ); // WOOPS! Error: Cannot read property 'someMethod' of undefined +alert( worker.slow(2) ); // Whoops! Error: Cannot read property 'someMethod' of undefined */!* ``` diff --git a/10-regular-expressions/08-regexp-greedy-and-lazy/article.md b/10-regular-expressions/08-regexp-greedy-and-lazy/article.md index 79f2c890..11b9cbc7 100644 --- a/10-regular-expressions/08-regexp-greedy-and-lazy/article.md +++ b/10-regular-expressions/08-regexp-greedy-and-lazy/article.md @@ -218,7 +218,7 @@ alert( str.match(reg) ); // let str = '...... ...'; let reg = //g; -// Woops! Two links in one match! +// Whoops! Two links in one match! alert( str.match(reg) ); // ... ``` diff --git a/8-async/02-promise-basics/article.md b/8-async/02-promise-basics/article.md index 1f9fa5a5..d20c9f99 100644 --- a/8-async/02-promise-basics/article.md +++ b/8-async/02-promise-basics/article.md @@ -44,7 +44,7 @@ Or, in case of an error: ```js let promise = new Promise(function(resolve, *!*reject*/!*) { // after 1 second signal that the job is finished with an error - setTimeout(() => reject(new Error("Woops!")), 1000); + setTimeout(() => reject(new Error("Whoops!")), 1000); }); ``` @@ -82,10 +82,10 @@ promise.then(result => alert(result)); ```js run let promise = new Promise(function(resolve, reject) { - setTimeout(() => reject(new Error("Woops!")), 1000); + setTimeout(() => reject(new Error("Whoops!")), 1000); }); -// shows "Woops!" after 1 second +// shows "Whoops!" after 1 second promise.catch(error => alert(error.message)); ``` diff --git a/8-async/03-promise-chaining/article.md b/8-async/03-promise-chaining/article.md index c518a872..ddfb4c2e 100644 --- a/8-async/03-promise-chaining/article.md +++ b/8-async/03-promise-chaining/article.md @@ -212,9 +212,9 @@ For instance: ```js run new Promise(function(resolve, reject) { - throw new Error("Woops!"); + throw new Error("Whoops!"); }).catch(function(error) { - alert(error.message); // Whoops + alert(error.message); // Whoops! }); ## Inheriting from promise, thenables, error handling? @@ -248,11 +248,11 @@ new Promise(function(resolve, reject) { setTimeout(() => resolve(1), 1000); }).then(function(result) { - throw new Error("Woops!"); + throw new Error("Whoops!"); }).catch(function(error) { - alert(error.message); // Woops! + alert(error.message); // Whoops! }); ```