diff --git a/pages/hack-school/js.mdx b/pages/hack-school/js.mdx index 497572c..ce84942 100644 --- a/pages/hack-school/js.mdx +++ b/pages/hack-school/js.mdx @@ -105,12 +105,12 @@ let y = false; let person = {firstName: "John", lastName: "Doe"}; // Array object -let communites = ["Hack", "AI", "Cyber", "Design"]; +let communities = ["Hack", "AI", "Cyber", "Design"]; ``` ## Equality JavaScript offers loose equality (==) and strict equality (===) operators for comparison. -It's recommended to always use strict equality to avoid unexpected type conversions. Strict equaltiy checks for both +It's recommended to always use strict equality to avoid unexpected type conversions. Strict equality checks for both value and type while loose equality checks only value. Example: