JS Tutorials: What is Reference Data Type |

Pubblicato il: 29 ottobre 2023
sul canale di: Progrramers
25
0

This is the 8th Continuation Video of the JavaScript Tutorial Series. The previous video was about Data Type and Primitive Date Type and here we will talk about JS: Reference Data Type. So the video will be interesting and full of JS fun so please watch it till the end.

Chapters


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

******************************************************
website:- https://www.progrramers.com
Facebook Page:-   / theprogrramers  
Instagram:   / c.kumar  
**************************************************
Other Websites :
https://sarkarijobs.link


In questa pagina del sito puoi guardare il video online JS Tutorials: What is Reference Data Type | della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Progrramers 29 ottobre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 25 volte e gli è piaciuto 0 spettatori. Buona visione!