diff --git a/typescript.md b/typescript.md index e3b24ceb..b72bd4cd 100644 --- a/typescript.md +++ b/typescript.md @@ -271,7 +271,7 @@ for (const i of list) { // for..in statement // iterate over the list of keys on the object being iterated for (const i in list) { - console.log(i); // 0, 1, 2 + console.log(i); // "0", "1", "2" } // Type Assertion