filmov
tv
JS Tutorials: What is Data Type in JavaScript | JS#007 #javascript #javascript_tutorial #datatypes

Показать описание
This is the 7th Continuation Video of the JavaScript Tutorial Series. The previous Two Videos are about Operators (Arithmetic and assignment Operators) and here we will talk about JS: Data Type. So the video will be interesting and full of JS fun so please watch it till the end.
Chapters
01:30 What is JavaScript Data Type?
04:25 How many Categories of Data Types?
04:35 Explaining Primitive Data Types.
06:30 Explaining Reference Data Types.
12:30 Explaining Number Data Types & Typography
14:55 Explaining Srting Data Types & Typography
17:00 Explaining Boolean Data Types & Typography
21:05 Explaining Undefined & Null Data Types & Typography
26:20 Explaining Symbol Data Types & Typography
29:00 Intro of BigInt Datatype
What is Data Type in JavaScript?
In JavaScript, a data type defines the type of data that a variable can hold. JavaScript has several built-in data types that can be categorized into two main categories: primitive and reference data types.
1. Primitive Data Types.
Stored by Value: Primitive data types are stored by value in memory. When you assign a primitive value to a variable, that variable directly holds the actual value.
Immutable: Primitive values are immutable, which means that once you create them, you cannot change their value. If you want to change a primitive value, you must create a new variable with a new value.
1. Number: Represents numeric values, both integers and floating-point numbers.
2. String: Represents textual data, enclosed in single ('') or double ("") quotes.
3. Boolean: Represents a binary value, either true or false.
4. Undefined: Represents a variable that has been declared but has not been assigned a value.
5. Null: Represents an intentional absence of any object value or no value at all.
6. Symbol (ES6): Represents a unique and immutable value often used as object property keys.
2. Reference Data Types
Stored by Reference: Reference data types are stored by reference in memory. When you assign a reference value (e.g., an object or an array) to a variable, the variable holds a reference to the memory location where the actual data is stored.
Mutable: Reference values are mutable, which means that you can change their content without changing the reference itself. This allows you to modify the underlying data.
1. Object: Represents a collection of key-value pairs (properties and methods).
2. Array: A special type of object used to store a list of values with numeric indexes.
3. Function: A reusable block of code that can be invoked with specific arguments.
4. Date: Represents date and time information.
5. RegExp (Regular Expression): Represents a pattern used for string matching.
6. DOM: It represents the HTML Document Object Model
******************************************************
**************************************************
Other Websites :
Chapters
01:30 What is JavaScript Data Type?
04:25 How many Categories of Data Types?
04:35 Explaining Primitive Data Types.
06:30 Explaining Reference Data Types.
12:30 Explaining Number Data Types & Typography
14:55 Explaining Srting Data Types & Typography
17:00 Explaining Boolean Data Types & Typography
21:05 Explaining Undefined & Null Data Types & Typography
26:20 Explaining Symbol Data Types & Typography
29:00 Intro of BigInt Datatype
What is Data Type in JavaScript?
In JavaScript, a data type defines the type of data that a variable can hold. JavaScript has several built-in data types that can be categorized into two main categories: primitive and reference data types.
1. Primitive Data Types.
Stored by Value: Primitive data types are stored by value in memory. When you assign a primitive value to a variable, that variable directly holds the actual value.
Immutable: Primitive values are immutable, which means that once you create them, you cannot change their value. If you want to change a primitive value, you must create a new variable with a new value.
1. Number: Represents numeric values, both integers and floating-point numbers.
2. String: Represents textual data, enclosed in single ('') or double ("") quotes.
3. Boolean: Represents a binary value, either true or false.
4. Undefined: Represents a variable that has been declared but has not been assigned a value.
5. Null: Represents an intentional absence of any object value or no value at all.
6. Symbol (ES6): Represents a unique and immutable value often used as object property keys.
2. Reference Data Types
Stored by Reference: Reference data types are stored by reference in memory. When you assign a reference value (e.g., an object or an array) to a variable, the variable holds a reference to the memory location where the actual data is stored.
Mutable: Reference values are mutable, which means that you can change their content without changing the reference itself. This allows you to modify the underlying data.
1. Object: Represents a collection of key-value pairs (properties and methods).
2. Array: A special type of object used to store a list of values with numeric indexes.
3. Function: A reusable block of code that can be invoked with specific arguments.
4. Date: Represents date and time information.
5. RegExp (Regular Expression): Represents a pattern used for string matching.
6. DOM: It represents the HTML Document Object Model
******************************************************
**************************************************
Other Websites :