Variables and DataTypes in JS || JavaScript Series 2024

preview_player
Показать описание

In this video tutorial, we will be learning about JavaScript Variables and DataTypes.

Whether you're a beginner or an experienced web developer, this step-by-step guide will help you master the art of JS. Join me on this complete web development course using the MERN stack and take your skills to the next level!

Checkout my Main Channel: @LoveBabbar

Tags: JavaScript, variables,Datatypes, Javascript series, Javascript in Hindi, Javascript tutorial

Grow with me here:
Main Channel: @LoveBabbar

My Telegram Group Link:
Love Babbar CODE HELP

My Discord Server Link:

Comment #BabbarBhai if you read this.
Рекомендации по теме
Комментарии
Автор

Best mentor in the world of web development ..doing great job.keep continue your efforts .

musabihafatima
Автор

32:50 Symbol-> primitive data type
-> introduced in ES6
-> used to represent unique values, that can be used as keys for objects

PROS-> Being both unique and immutable, serve effectively as distinctive identifiers within objects and classes
-> They enable the creation of private properties and methods within classes, enhancing encapsulation and security
-> Are advantageous for establishing constants that are easily shared across various segments of your codebase

CONS-> limited usability
-> complex debugging

For example,
const value1 = Symbol('hi');
const value2 = Symbol('hi');

console.log(value1 === value2); // false

anshitasharma
Автор

Thank you bhaiya, for this amazing lecture.
JavaScript Symbols are a new type of primitive data type introduced in the ES6 version of the language. They are used to represent unique values that can be used as identifiers or keys in objects. They are also used to create private properties and methods in classes.

Example- // Create a Symbol
const creatingSymbol = Symbol();

console.log( creatingSymbol );
// expected output: Symbol()

nehagond
Автор

After long time so exiting 🎉 please just keep this playlist regular

tushargedam
Автор

Thanks You bhaiya>>> you cleared all my doubts...

Sharma__karan
Автор

thanks bhai samajh aya sb or ap bohat acha teach krty ho love your vedios

TajammulHussain-fecx
Автор

Symbol is a Primitive datatype.
Introduced in ES6.
You can think about it like this: Symbol is a built in object whose constructor [symbol()] returns a Symbol which is guaranteed to be unique.

Ex: -
let x = Symbol("hello");
here Symbol("hello") returns a unique and immutable value for the x.

let y = Symbol("hello");
here also returns a unique (other than that assigned to x above) and immutable value for the y.

console.log(x == y); // false
console.log(x === y); // false

AkashYadav-dikd
Автор

32:00
JavaScript mein "symbol" ek primitive data type hai, jo ES6 (ECMAScript 2015) mein introduce kiya gaya tha. Symbol ek unique aur immutable data type hai. Har ek symbol unique hota hai aur kabhi bhi do symbols equal (===) nahi hote hain, chahe woh do alag-alag symbol instances hi kyun na hon.

Symbols unique identifiers provide karte hain, jisse aapko kisi property ko unique taur par identify karne mein madad milti hai. Yeh property names ke clashes ko rokne mein helpful hota hai, jaise ki object literals mein.

Symbol ko create karne ke liye Symbol() function ka use hota hai:

ex-
const mySymbol = Symbol();

codinglife
Автор

Symbols are unique and immutable data types that can be used as unique identifiers. They are often used as property keys in objects to avoid naming collisions.

Beast_Hindi_.
Автор

Symbols in JavaScript are unique immutable data types introduced in ECMAScript 6. They're created using the Symbol() function and used for unique identifiers, preventing naming collisions. Symbols are often used to define object properties inaccessible to regular JavaScript code, useful for creating private properties or special behaviors.


Samjh mai aa gya sir .
Thanku sir for this Full stack playlist .

akarshshukla
Автор

lovely explanation, aaj samajh aaya var, let and const. Thank you so much for sharing with us your valuable experties.

shivaaryaprakash
Автор

Symbols are typically immutable and can be more memory-efficient than strings, especially when used as keys in data structures like hashes or dictionaries.
const mySymbol = Symbol('description'); // A symbol in JavaScript
const myObject = {
[mySymbol]: 'value'
};

sumitranandantripathi
Автор

apki vajha se mujhe bahut help milti hai thank you sir

star
Автор

36:12 bhaiya samajh me aa gaya. Thankyou for the video .🙏🏻🙏🏻 Lots of Love❤❤

extractionez
Автор

The Symbol data type represents a unique and immutable primitive value. It is used to create a unique property keys for objects ensuring they won't conflict with existing string or number keys that you define in your code.

ex:
const sym1 = symbol() ;
const sym2 = symbol("Hello");
it creates a unique symbol for above sym1 and sym2.

vaibhavarora
Автор

Bhadiya cheeze hove h symbol, ba kau constructor ekdam unique value bheje h, ekdam sat pratishat unique, tum use kar sake ho ikaa key generate karan vaaste
Phaar egjaampil
Symbol(hello) === Symbol(hello) devat hai phalse

B-NikhilRichhariya
Автор

- symbols are a primitive data type introduced in ECMAScript 6
- A symbol is a unique and immutable data type that can be used as an identifier for object properties.
- const answer = Symbol();

Pros:
Uniqueness
Privacy and Encapsulation
Well-Suited for Special Use Cases

Cons:
Obscure Syntax
Limited Browser Support
Memory Consumption

akxxhil
Автор

sir i'm from nepal and i have studied from your couse and i love your couse.
Thank you soo much dil se .

natureslover
Автор

Symbol is a primitive data-type. It is basically an object whose constructor returns an unique symbol each time it is called. This is used to provide unique property keys and it also provides a weak form of

GopikrishnanTripathy
Автор

Symbol is a primitive datatype used to create unique identifiers in JS.Please complete the playlist bhaiya ..please maintain the consistency 🙏🙏

fact-x