Array part 2 in Javascript Hindi | chai aur
Vložit
- čas přidán 23. 04. 2023
- Visit chaicode.com for all related materials, community help, source code etc.
#javascript #hindi
Sara code yaha milta h
github.com/hiteshchoudhary/
Discord pe yaha paaye jaate h:
hitesh.ai/discord
Instagram pe yaha paaye jaate h:
/ hiteshchoudharyofficial - Věda a technologie
Finally cylender aa gyi, ab chai garam ho jayegi!
Hahaha 🤣
Key Takeaways
1. push() method in array simply add the array as an new single entity in the existing array.
2. concat() method help us achieving a desisered output, like merging the two array, but the problems with concat are, It complicated to concat more then one array simultaneously and also It takes extra space and do the merging operation.
3. Despite push and concat we should use spread operator.
4. Intresting methods, isArray(), from() and of()
I love jb sir modern heroes ki jgh old time k heroes k reference dete . Makes me feel like he's someone very simple and remembers old time and cherishes it . Although loving the playlist , thanks for the efforts sir
"I've tried other tutorials, but Chai aur Code is on another level. The perfect JavaScript mentor!"
I can relate him as a Web Developer trainer as when at 6:36 he's explaining about Concatenation he's getting unexpected output because sometimes we don't use some methods oftenly so we don't have confidence on it's output and get confused why is that happening, but to keep students motivated and don't let them think Sir ko itna bhi nhi ata we immediately try to show Oh we knew this will occur.. but then we take 1 min break for rechecking and then we debug and explain why that happened 😅😂
we can merge multiple arrays using concat as well like spread syntax..
const Array1 = [1,2,3,4,5];
const Array2 = [5,6,7,8,9,10];
const Array3 = [0,0,0];
const Array4 = [1,3,9,19];
const concatAll = Array1.concat(Array2, Array3,Array4)
console.log(concatAll)
thanks bro
Bhai suno
@@sagarthapliyal828 sunao
@@sagarthapliyal828bhai tum garhwali ho na
@@tarunpanwar6983 ha bhai
Man you speak in a very lovable manner. Huge Respect for that, it takes a lot to teach and then to teach in this way is really very appreciable.
Sir really aap jo quality content hume dete hai vo kisi paid courses se behad behtar hai. Region ki aap industry requirment chize bata rahe hai. Aap vo sabb cover kara rahe jiska real mai industry mai use hai aur most of the code use kerte hai everyone project ko build kerne mai. Baaki youtube mentor bahut hai but aap unique person hain +industry expert hai. Ekk beginner wale coder ki jaan hai.❤😂
I'm addicted to this series... your way of explaining is simple and crystal clear. ❤
spread operator har kahi se padhkar dekh liya bahut tough lag raha tha but ab apki videos se ek dum mast samajh mein aaya glass todne ke baad 😁
It was very easy to understand the concept of spread operator with the help of glass break example thank you so much hitesh sir for this mindblowing javascript series
Outstanding explanation,
just like a wow
Dekh rhaa lagatarr aap bs sir u hi lagerhoo.. love and respect
very well explained
you are tech champion
very good and quality content on youtube for free,
its a blessing sir
thank you for all these quality
Outstanding explanation, just like a wow😂
Thanks for this helpful video. love and respect for you🥰
Thank you so much sir ❤❤❤❤❤❤❤❤❤for this series
best Series ALL OVER UNIVERSE, thank you Sir 🙏
Your smile so good which give us positive energy 😊
sir koi baat nahi doosre kaam bhi dekhna zaroori he, aap bas video banate rahiyega, we are thankful of you
Love the way he teaches
Perfect series ❤
Thank you sir for this aweome vidoes🙏
GREAT DETAIL TEACHING
Thanks for this amazing video!!
this coures is looking like a WOW🤩
Keep going sir❤
best Playlist for js all time
Keep it sir 🔥🔥🔥🔥❤❤
The guy disserve more subscriber.
best series
bhaia ji big fan
Thank your sir for this js playlist ke liye
very helpful.
chai or aapke videos , very addictive sir
Bs isi baat pe 1 aur video abhi upload krte h
@@chaiaurcode thanks sir😍😍
Welcome back sir
Thank your sir for this js playlist ke liye
Please React Js ka playlist layiye
god or wott sir
Thank you sir
Maza aagya bhayya
Great sir 👍. But js complete hone ke baad ekk project ko buildup kijiyega sir.🙏 really full confidence tabhi banega.
Project to shyad kl hi aa rha h
धन्यवाद सर
concat method can also combine multiple arrays
Sir ky flat me jo infinity hai usko real me bhi use kr sakte hai ya fir aapne for example bhi bataya hai
Arrays🔥
Thak you sir❤❤❤
thank you !
goog work
nice video
Thanks sir 💖
15/51 done [5.1.24] ✅✅
OP
Auto save on delay on karlo sir
Chai pine ka wqt mil jayega!
Thanks
Hello Hitesh
Hi, sir, My name is Rutuja, and I enjoy watching your videos. I would like to ask for guidance on how to practice arrays. Could you provide me with some resources for solving questions related to arrays? I am preparing for an interview.
00:02 Delays will happen but the JavaScript series will continue.
01:44 Exploring more array methods and accessing prototypes through console inspection.
03:49 Exploring array manipulation and data access in JavaScript
05:48 Understanding the difference between push and concat methods in JavaScript
07:44 Spread operator in JavaScript
09:38 Understanding depth in recursive analysis.
11:54 Converting values to arrays in JavaScript (Hindi)
13:45 Conversion of variables and arrays into arrays in JavaScript.
dil khush hogya
at 13:45 how to give key and value?
vo to batao.
Javascript padata to har koi hai, but Hitesh sir jaise koi nhi padhata, kahi nahi padhata, or na hi koi padhayega!!
Unique content
Finally
Bahot jaldi video aagaya
Free content daalne pe b log taane marte h kya? 😂
Not only free, jabardast video and sound quality ke sath free content
@@chaiaurcode Nehi g mai toh soch raha ta aur thoda time lagege. Btw Der Aaye Durust Aaye. Aur ek baat CZcams me free ki content bahot sare hain.
Paaji kamaal kar ditta 🙇
Inna vadhiya samjhaya hai aapne
var i = 0;
while (i < 10) {
console.log("Gulaabi Dil");
}
🤣🤣🤣
How to add breakpoint in developer tool....for e.g. in line 2,5,8,11,12,13,...shortcut key to add these breakpoints??
❤
sir @chai aur code there is mistake while explaining
push and concat
concat jo hai wo new array generate karta hai
but aap ne jo uppar wala push operation hai usko comment nhi kiya isleye concat ko run karte time same output
warna concat aur push differntly work karte hai
please check and review this
and i love learning here
Thank you for such great content
sir apne fix kar diya baad mai 😅😅 maine aage jaa ke dheka
sir if marvel_heros is const then how we are changing the value of const variable by using push method
G bilkul
const someObj = {name: "hitesh"}
const objectVar = [someObj]
console.log(Array.from(objectVar));
❤❤❤
Sir pls increase sound of video ,bcz i have full sound still not enough
Sir mai sirf aapki wajah se pwskills join kar rha hu plz aap mujhe assure kar dijiye k aap wahan full course finish karwayenge
👍
concat returns a new array with both array concatinated
Thank you
can you please make type script series in Hindi?
correction - we can use concat to add as many arrays as we need.
THANKS SIR FROM PAKISTAN🇵🇰
Spread operator: My example is tomato bucket, spreading all tomato's on the ground. and rest operator is opposite of it collecting all tomato's on the ground in the bucket. so bucket is array and elements are the tomato's
Day 12 completed ✅
kya me ek baat puch saktha hu ki iske pehle wale vedios sab dekhe teh par ab ithni vakth bhat phir se shuru kar raha he toh pehlee wala sub consepts yaad nahi raha toh like woh sab phirse dekhna ho ga . mere dimag mei aisa hi hei sir like bhuul jatha hu thodi vakth ke baath agar revise nahi karee toh
Sir aapko kyo lagta hai hum is video ko share karenge wo bhi apne college groups me
Kaun chahta hai uske dost bhi padhe 😂
Or us group me share karne se gaali or pdegi
fact bole bhai😃
😍😍😍😍😍
hlw bro, tumko github achhe se use karna ata hai pata nahi yaar kya hua hai commit aur push ho nhi raha thoda help kar dete yaar
Sir include and isArray same work karte hai kya ya phir difference hai dono me
Include is use to check the passing element is present in array or not, but isArray is used to check the typeof of element passed is of Array or not.
push and concat both are different
7:10 bro return a new array mean
Let hero = marvelHero.concat(dcHero);
console.log(hero);
//Output: spider man, thor, Iron ma, Super man,bad man, flash
7:11 I think now I started a CZcams channel
7:12
7:13
7:14
7:15
7:16
7:17
7:18
7:19
7:20
done ✅
@chaiaurcode Facing issue when print the array of flat - "another_array.flat is not a function"
you have to use flat() function, you are just using "another_array.flat" where flat is not a function.
When you call a funtion it must be written in proper syntax :
function_name()
example:
you have a function named cars, then it must be written like cars().
SUMMARRY :
1. Spread operator( ...arrayName) = to create a shallow copy of an array,to join/concatenate arrays,to add elements to an array.
2. .flat(infinity) = to flatten infinity level nested arrays.
3. .from = for converting array-like and objects into arrays.
4. for creating new arrays from a set of values, regardless of how many values are provided or their types.
❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤
DONE
we are declaring the arrays initially as const, then later on we are changing the values in it. how it this possible.
See the data type of array are non primitive it means we will get the reference of the original memory
So although they are declare as const "we change the element in the array" i.e arr1[1] = 1 will not give any error
But we can't change the array itself that
Doing arr1 = arr2 will give error due to const
Hope this will.make u understand 😊
Bro all new hero me ... Three dote ku diye hai isse jada bhi de sakte hai
(...) It is the syntax of spread operator. So there can only be three dots as per ES6 in the spread operator.
Here Sir used it to copy the elements of dc_heros and marvel_heros into all_new_heros.
const myObject = { a: 1, b: 2, c: 3 };
// Using Object.entries and Array.from
const myArray = Array.from(Object.entries(myObject), ([key, value]) => value);
console.log(myArray); // [1, 2, 3]
Done with 15th video ✔☑✅
08:00= Spread Operator,
what is this theme? name?
when i print allHeros i got output as :
all Heros::: [
'superman',
'batman',
'aquaman',
[ 'thor', 'spiderman', 'black panther' ],
'thor',
'spiderman',
'black panther'
]
now what is the problem??
Okay got it my mistake :}
Chai sir Nomeste ❤ i am read
8:19 per mere pass to steel ka glsas he