Skip to content

Commit 36a96ba

Browse files
committed
[DONE] module-2 codes & notes
1 parent a7d82f6 commit 36a96ba

35 files changed

+1781
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ NOTE: Notes will be added by Mission name
4949
<summary> Mission 1: Be a TypeScript Technocratat (Module - 2) </summary>
5050
<ol>
5151
<li>
52-
<a href="./missions/mission-1/module-2.md"> Module 2: Explore Basic Types of TypeScript </a>
52+
<a href="./missions/mission-1/module-2/notes.md"> Module 2: Explore Basic Types of TypeScript </a>
5353
</li>
5454
<li>
5555
<a href="./missions/mission-1/module-3.md"> Module 3: Explore Advance Types of TypeScript </a>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

missions/mission-1/module-2/.idea/.gitignore

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

missions/mission-1/module-2/.idea/git_toolbox_prj.xml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

missions/mission-1/module-2/.idea/module-1.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

missions/mission-1/module-2/.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

missions/mission-1/module-2/.idea/prettier.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

missions/mission-1/module-2/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"use strict";
2+
const namesArray = ['Abul', 'Kabul', 'Babul'];
3+
const numbersArray = [1, 2, 3, 4, 5];
4+
console.log(namesArray);
5+
console.log(numbersArray);
6+
namesArray.map((name) => {
7+
console.log(name.charAt(4));
8+
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
"use strict";
2+
// primitive types
3+
// string
4+
// number
5+
// boolean
6+
// null
7+
// undefined
8+
let stringTypeVariable = 'This is a string';
9+
let numberTypeVariable = 1234567890;
10+
let booleanTypeVariable = true;
11+
let nullTypeVariable = null;
12+
let undefinedTypeVariable = undefined;
13+
//stringTypeVariable = 5555; // Type 'number' is not assignable to type 'string'.
14+
stringTypeVariable.charAt(1);
15+
console.log(stringTypeVariable);
16+
// implicit types of typescript
17+
// when typescript automatically understand the type of the declared variable is known as the implicit types
18+
const implicitTypesVariable = 'This is a implicit stype variable';
19+
console.log(implicitTypesVariable);
20+
// any type of tpescript
21+
let anyTypeVariable;

0 commit comments

Comments
 (0)