1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-12 09:44:24 +02:00

Update typescript.html.markdown

The input list is of int[] [@line236](https://github.com/adambard/learnxinyminutes-docs/blame/master/typescript.html.markdown#L236]) but the output of its shown is in string [@line238](https://github.com/adambard/learnxinyminutes-docs/blame/master/typescript.html.markdown#L238]). same thing happens at [@line244](https://github.com/adambard/learnxinyminutes-docs/blame/master/typescript.html.markdown#L244])
This commit is contained in:
Monis Qadri
2019-07-31 13:06:54 +05:30
committed by GitHub
parent 4e38da9b3d
commit 7fa8cc63c8

View File

@@ -235,13 +235,13 @@ for (const val of arrayOfAnyType) {
let list = [4, 5, 6]; let list = [4, 5, 6];
for (const i of list) { for (const i of list) {
console.log(i); // "4", "5", "6" console.log(i); // 4, 5, 6
} }
// for..in statement // for..in statement
// iterate over the list of keys on the object being iterated // iterate over the list of keys on the object being iterated
for (const i in list) { for (const i in list) {
console.log(i); // "0", "1", "2", console.log(i); // 0, 1, 2
} }