From 3d7792049a6eba660c432af45eed98730c673753 Mon Sep 17 00:00:00 2001 From: Lallo Vigil Date: Sat, 1 Sep 2018 22:24:57 -0500 Subject: [PATCH] fix(challenges): a sentence didn't make sense, so I modified it ISSUES CLOSED: #18046 --- .../02-javascript-algorithms-and-data-structures/debugging.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/02-javascript-algorithms-and-data-structures/debugging.json b/challenges/02-javascript-algorithms-and-data-structures/debugging.json index 30270005ac..8a5335b10a 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/debugging.json +++ b/challenges/02-javascript-algorithms-and-data-structures/debugging.json @@ -117,7 +117,7 @@ "id": "587d7b84367417b2b2512b34", "title": "Use typeof to Check the Type of a Variable", "description": [ - "You can use typeof to check the data structure, or type, of a variable. This is useful in debugging when working with multiple data types. If you think you're adding two numbers, but one is actually a string, the results can be unexpected. Type errors can lurk in calculations or function calls. Especially take care when you're accessing and working with external data in the form of a JavaScript object (JSON).", + "You can use typeof to check the data structure, or type, of a variable. This is useful in debugging when working with multiple data types. If you think you're adding two numbers, but one is actually a string, the results can be unexpected. Type errors can lurk in calculations or function calls. Be careful especially when you're accessing and working with external data in the form of a JavaScript Object Notation (JSON) object.", "Here are some examples using typeof:", "
console.log(typeof \"\"); // outputs \"string\"
console.log(typeof 0); // outputs \"number\"
console.log(typeof []); // outputs \"object\"
console.log(typeof {}); // outputs \"object\"
", "JavaScript recognizes six primitive (immutable) data types: Boolean, Null, Undefined, Number, String, and Symbol (new with ES6) and one type for mutable items: Object. Note that in JavaScript, arrays are technically a type of object.",