Skip to content

Commit 94f030f

Browse files
committed
Update README.md
1 parent 5bc50cf commit 94f030f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Typescript Basics
1+
# Typescript Interview Questions
22

33
*Click <img src="assets/star.png" width="18" height="18" align="absmiddle" title="Star" /> if you like the project. Pull Request are highly appreciated.*
44

@@ -7,7 +7,7 @@
77
## Q. What are the typescript features?
88

99
**TypeScript** is a superset of JavaScript which primarily provides optional static typing, classes and interfaces.
10-
Typescript is an extension of ES6.
10+
Typescript is an extension of ES6.
1111

1212
* TypeScript includes Interfaces, Classes, Enums, Type Inference, Generics, access modifiers, Function etc. TypeScript makes typing a bit easier and a lot less explicit by the usage of type inference.
1313

@@ -49,7 +49,8 @@ let school3 = getSchool("Rose Tree School", "US", "99501")
4949

5050
## Q. How to declare variable so that it can hold multiple values?
5151

52-
**Tuples**:
52+
**Tuples:**
53+
5354
It represents a heterogeneous collection of values. In other words, tuples enable storing multiple fields of different types. Tuples can also be passed as parameters to functions.
5455

5556
**Syntax:**
@@ -61,7 +62,7 @@ let tuple_name = [value1, value2, value3,… value n]
6162
**Example:**
6263

6364
```ts
64-
let employee: [number, string] = [10, "Pradeep"]; //create a tuple
65+
let employee: [number, string] = [10, "Pradeep"]; // Create a tuple
6566
console.log(employee[0]); // Output: 10
6667
console.log(employee[1]); // Output: Pradeep
6768
```

0 commit comments

Comments
 (0)