summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMonis Qadri <monis0395@users.noreply.github.com>2019-07-31 13:06:54 +0530
committerGitHub <noreply@github.com>2019-07-31 13:06:54 +0530
commit7fa8cc63c85f331e81a51443d9a81a9e058e8f42 (patch)
treee2204e719a3293fec8bd3a978c97ac36fbcbeac8
parent4e38da9b3debe7f689340ab4a41b4a73988d7889 (diff)
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])
-rw-r--r--typescript.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/typescript.html.markdown b/typescript.html.markdown
index 55d8cefe..c27e93a6 100644
--- a/typescript.html.markdown
+++ b/typescript.html.markdown
@@ -235,13 +235,13 @@ for (const val of arrayOfAnyType) {
let list = [4, 5, 6];
for (const i of list) {
- console.log(i); // "4", "5", "6"
+ console.log(i); // 4, 5, 6
}
// 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
}