Skip to content

Commit 4544d1e

Browse files
authored
Create README.md
1 parent fd0f475 commit 4544d1e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
**Q1. Is javascript a dynamically typed language or a statically typed language ?**
2+
Javascript is a dynamically typed language.
3+
It means all type checks are done at run time ( When program is executing )
4+
So, we can just assign anything to the variable and it works fine.
5+
6+
let a;
7+
a = 0;
8+
console.log(a) // 0
9+
a = "Hello"
10+
console.log(a) // "Hello"
11+
12+
**Q2. What are the different datatypes in javascript ? (Most asked)**
13+
Primitive datatypes:
14+
String
15+
number
16+
boolean
17+
null
18+
undefined
19+
Bigint
20+
symbol
21+
Non-Primitive datatypes:
22+
Array
23+
Object
24+
Date

0 commit comments

Comments
 (0)