Hellođź‘‹
It's my first blog so i am not familiar with writing the blog...So could you provide me tips and feedbacks that needs to improved in the comment section .Thanks in advance!!!
Javascript is a scripting language which was used for manipulating dom but now it becomes more powerful with different frameworks.
Javascript Data types:
-
Primitive Types
In Primitive types the datas are stored as values in memory(Call by value) and are fixed in size
- Boolean - Null - Undefined - Number - String - Symbol
-
Non-Primitive Type
In Non-Primitive types the datas are stored in memory with its address and reference the value(Call by reference).It is not in fixed size
-Objects
Boolean
It is either true or false
Example: var isOdd =true;
Null
In javascript null is an type where it as absence of any type.(i.e no memory was created for that particular value)
Example: var name=null;
Undefined
It means the variable with out any value.
Example:var name;
Number
In javascript both integer and floating values are assigned with 'Number' type
Example:var value1=5;/var value2=5.2
String
It is a combination of characters
Example:var greeting="hello";
Objects
In javascript objects are key and value pair
Example:var name={firstName:"john",
lastName:"doe"
}
Top comments (1)
Just a heads up that you can add highlighting to the code blocks if you'd like. Just change:
... to specify the language:
More details in our editor guide!