From 1d45b45c079066bcb3e7e7712081d088a44eb3ef Mon Sep 17 00:00:00 2001 From: Prokhor Date: Sun, 28 Oct 2018 16:13:33 +0300 Subject: [PATCH] =?UTF-8?q?A=20spelling=20mistake=20in=20the=20word=20"pre?= =?UTF-8?q?ferrably"=E2=9D=97=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There must be one character "r". --- 1-js/08-error-handling/1-try-catch/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/08-error-handling/1-try-catch/article.md b/1-js/08-error-handling/1-try-catch/article.md index eabfb742..ac3e0031 100644 --- a/1-js/08-error-handling/1-try-catch/article.md +++ b/1-js/08-error-handling/1-try-catch/article.md @@ -255,7 +255,7 @@ The syntax is: throw ``` -Technically, we can use anything as an error object. That may be even a primitive, like a number or a string, but it's better to use objects, preferrably with `name` and `message` properties (to stay somewhat compatible with built-in errors). +Technically, we can use anything as an error object. That may be even a primitive, like a number or a string, but it's better to use objects, preferably with `name` and `message` properties (to stay somewhat compatible with built-in errors). JavaScript has many built-in constructors for standard errors: `Error`, `SyntaxError`, `ReferenceError`, `TypeError` and others. We can use them to create error objects as well.