From c75e07d82be78867a73210296d4677d80b329bbc Mon Sep 17 00:00:00 2001 From: Sean Wall Date: Wed, 9 Aug 2017 08:40:00 -0400 Subject: [PATCH] Fix spelling mistake 'substract' --- 1-js/04-object-basics/05-object-toprimitive/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/04-object-basics/05-object-toprimitive/article.md b/1-js/04-object-basics/05-object-toprimitive/article.md index bd2fc771..bac33287 100644 --- a/1-js/04-object-basics/05-object-toprimitive/article.md +++ b/1-js/04-object-basics/05-object-toprimitive/article.md @@ -1,7 +1,7 @@ # Object to primitive conversion -What happens when objects are added `obj1 + obj2`, substracted `obj1 - obj2` or printed using `alert(obj)`? +What happens when objects are added `obj1 + obj2`, subtracted `obj1 - obj2` or printed using `alert(obj)`? There are special methods in objects that do the conversion. @@ -11,7 +11,7 @@ In the chapter we've seen the rules for numeric, string For objects, there's no to-boolean conversion, because all objects are `true` in a boolean context. So there are only string and numeric conversions. -The numeric conversion happens when we substract objects or apply mathematical functions. For instance, `Date` objects (to be covered in the chapter ) can be substracted, and the result of `date1 - date2` is the time difference between two dates. +The numeric conversion happens when we subtract objects or apply mathematical functions. For instance, `Date` objects (to be covered in the chapter ) can be subtracted, and the result of `date1 - date2` is the time difference between two dates. As for the string conversion -- it usually happens when we output an object like `alert(obj)` and in similar contexts.