JavaScript Arrays | Sigma Web Development Course - Tutorial #63
HTML-код
- Опубликовано: 22 авг 2024
- Access the Sigma web development course playlist: • Sigma Web Development ...
➡️ Source Code: github.com/Cod...
➡️ Notes and CheatSheets: www.codewithha...
➡️ English Subtitles are now up for all the videos!
►Checkout my English channel here: / @programmingwithharry
►Instagram: codewithharry
Download UltraEdit Trial for Free: bit.ly/UltraEd...
python, C, C++, Java, JavaScript and Other Cheatsheets [++]:
Playlist: • Coding CheatSheets 🧾 b...
►Learn in One Video[++]:
Python Course with 5 Projects: • Python Crash Course in...
Python[15 Hr]: • Python Tutorial For Be...
Python Advance[3.5 Hr]: • Python Programming Cou...
Python[1 Hr]: • Learn Python In Hindi ...
Python[2 Hr]: • Python Tutorial In Hin...
Python[15 Min]: • 15 Minute Python Tutor...
JavaScript[1 Hr]: • JavaScript Tutorial
C[1.3 Hr]- • C Programming Tutorial...
php[1 Hr]: • Learn Php In One Video...
php[2.3 Hr]: • Php Tutorial for Begin...
php[Project]- • Login And Registration...
HTML[30 Min]: • HTML 5 Tutorial For Be...
CSS[8.5 Hr]: • CSS Tutorial In Hindi ...
CSS[1.4 Hr]: • CSS 3 Tutorial For Beg...
Wordpress[3.2 Hr]: • How To Make a WordPres...
Angular[2 Hr]: • Angular Tutorial in Hindi
Java[2.3 Hr]: • Java tutorial in hindi 🔥
Web Scraping[1 Hr]: • Web Scraping Tutorial ...
MongoDB[2 Hr]: • MongoDb Tutorial For B...
Numpy[1 Hr]: • Numpy Tutorial in Hindi
Android Dev[12 Hr]- • Android Development Tu...
Linux[1 Hr]: • Linux Tutorial For Beg...
JQuery[1.1 Hr]: • jQuery Tutorial For Be...
Git and GitHub[1.1 Hr]: • Git & GitHub Tutorial ...
►Complete course [playlist]:
React: • React Js Tutorials in ...
Python- • Python Tutorials For A...
OOP Python- • Object Oriented Progra...
Java: • Java Tutorials For Beg...
JavaScript- • JavaScript Tutorials I...
PHP- • PHP Tutorials in Hindi
C- • C Language Tutorials I...
C++- • C++ Tutorials In Hindi
Git & GitHub- • Git and GitHub Tutoria...
Android Dev- • Android Development Tu...
Python GUI- • Python GUI: Tkinter Tu...
Web Development- • Web Development Tutori...
Python Django: • Python Django Tutorial...
Projects Using HTML, CSS & Javascript- • Projects Using HTML, C...
Data Structure and Algo: • Data Structures and Al...
Follow Me On Social Media
►Website (created using Django Rest & Angular): www.codewithha...
►Facebook: / codewithharry
►Instagram: / codewithharry
Twitter: / codewithharry
Comment "#HarryBhai" if you read this 😉😉
ye jo shift hota hai voh pop ka bhai hota hai...
ye jo unshift hota hai voh push ka bhai hota hai...
Hats off Harry bhai.....❤
yhe jo shift hota hai wo pop ka bap hota hai ye jo unshift hotahai wo push ka bap hota hai hats off 😆but dono oposite hota hai
Bhai Tora Explain Kiya Kare Detail Se Bataya Kare Khud Kar Lete Hi Hame Samaj Nahi Ata hai Mene Apki Sare Videos Dekli Hai html / CSS, Ka Lekin JS ki Videos Samaj Nahi Ati Bar Bar Dekh Raha Ho Lekin Samaj Nahi ARaha Hai Aor HTML / CSS, ki videos Barya Ti LEkin JAva Samaj Nahi Araha Hai Please Tora Detail Se Bataye 🥺
@@Editing_Master_726 same
I can literally say to those who r very new here, trust me, he worked so hard to set those complete series with deep explanations for each and every concept. Going with his courses is genuinely worth the investment, as they provide a comprehensive and engaging learning experience.
Amazing job dude!
ye jo shift hota hai voh pop ka bhai hota hai...
ye jo unshift hota hai voh push ka bhai hota hai...
Respect Sir
this video took my 4-5 hours to learn completely, most difficult concept [for me] finally understood. Thanks Harry Bhai, you are really hero. My all blessing for you.
Harry sir,
I've watching your videos when I was studying in class 9th and now I am in a university doing BCA with the knowledge you provided and everything in coding I'm able to digest easily because of you.
I thank you from the bottom of my heart for creating such a useful channel with thousands of informative videos.
HATS OFF FOR YOU SIR AND MAY ALLAH BE WITH YOU IN EVERY SITUATION FOR THE GOOD. 🌙🌟
which University bro?
@@dhanjitznath DSEU
@@edward-soli Nice 👍.
bro me bhi DSEU me hi hu vo koi university nhi h.
fir kiya ha @@chahatkumar9301
What a course this is really better than any paid course....
Bhai tujhe ye aaj pata chala hai?
Mereko 2 saal pehle hi pata chal gya tha
Mere ko 4 saal se pata h 😇
@@AadvikSwaraj mereko pichle janam mein
@@AadvikSwarajtu yt he 6 months phle join kia hi 😂
@@psychox100 ye mera dursa account h, mere paas 3 google accounts h. yeh wala naya h
my mind is blown for now but this course is definately better that any other paid courses for sure , Thank you so much Harry
ye jo shift hota hai voh pop ka bhai hota hai...
ye jo unshift hota hai voh push ka bhai hota hai...
thank u Harry bhau
00:01 Arrays in JavaScript are used to store multiple values within one name.
01:57 JavaScript Arrays and accessing their length
05:36 JavaScript arrays can be mutated to change their values.
07:39 The video discusses converting an array to a string using the toString method, joining array elements using the join method, and removing the last element of an array using the pop method.
11:38 The video discusses JavaScript arrays and key operations like deleting elements and concatenating arrays.
14:02 The slice function in JavaScript arrays helps in removing and adding elements in a specific range of indexes.
17:45 JavaScript Arrays and different types of loops
19:30 JavaScript Arrays basics
23:17 Understanding JavaScript map function and its usage
25:07 The 'greaterThan' function returns true if the element is greater than 7, else it returns false.
28:38 Reduce is not frequently used compared to map and filter.
30:24 RUclips video summary on JavaScript Arrays
Bhai Chat GPT hai kya tu 😂😂
Harry bhai commenting first time
Dil sa thankyou ,
Apna mara hajaro rupiya bacha lia fees ka
ye jo shift hota hai voh pop ka bhai hota hai...
ye jo unshift hota hai voh push ka bhai hota hai...
Hats off Harry bhai.....
10:17 yes we can push "harry" into it because it is a Array we cn store different types of variables in it.
Congratulation harry bhai for 5 mil🎉. I am following your sigma web development course and i have completed 33 lecs. My experience so far has been great. Thank you for bringing this free course❤. #SigmaBatchOP #HarryBhai
10:05 yes Harry bhai "Harry " push ho jayenga
shift () jo hota hai wo pop() ka bhai hota hai
unshift() jo hota hai wo push() ka bhai hota hai
#SigmaBatchOp #JavascriptOp
i am a first year student and following this course ..it is very helpful for me
thanks harry bhai
shift() is the bhai of pop() which removes the first element of an array and returns the new array. Whereas unshift() is the bhai of push() which adds an element to the beginning of an array and returns the new array.
sab log suno,
jo shift hota hai wo pop ka bhai hota hai
aur jo push hota hai wo unshift bhai hota .
thanks you harry sir
harry bhai mereko pichle janam se pata tha ki ye course kitna badiya hai. Thanks for making it free
to pichle janm me q ni padha be 💩💩💩💩
@@red_xo teri maa ke sath busy tha
😂😂😂@@red_xo
op bhai array pdh k mja hi aagya .....kbhi itne acche se arrray ka knowledge nhi tha.........
Congratulations for 5 Million family Harry Bai 🎉🎉
#Sigmabatchop
Really valuable course Harry sir
At cost on only time no money 😊😊
Congratulations for 5 million subscribers 🎉🎉🎉🎉🎉🎉🎉❤❤❤
Soon, you'll get 100 million subscribers 🎉🎉
shift removes from front,pop removes from behind
push adds in last, unshift adds in starting
Following this course from beginning from Pakistan ❤
congratulation sir on 5m , may you have more happy life and long life
Congratulations for 5 Million Family Harry Bhai. it feels like personal achievement. JavaScript OP and you too Harry Bhai 🔥🔥
Congratulations Harry Bhai for achieving 5 Million Subscribers.
🎉🎉🎉
Next Step is hit to 10million subscribe.
I hope that will be done in next 1 or 2 years or more less time🎉🎉🎉🎉
5 Million Subscribers ❤ Love Coding....... and This Channel ❤
I thought I was last in this race, I never being consistent in this course but trust me whenever I spent time on this course I never regret.
JavaScript OP
shift() jo hota hai wo pop() ka bhai hota hai and ye unshift() push() ka bhai hota hai.
shift() - removes first value from array. (0th index)
pop() - removes last value from array. (n-1 th index)
unshift() - adds value at 0th index of array.
push() - adds value at n-1 index of array. (M...IMP)
#harrybhai congratulations for 5M subs, the family will be increasing like anything else.
I'm writing this in Marathi so that I can remember it.
shift popचा भाऊ आहे आणि unshift pushचा भाऊ आहे.
एक नंबर ना माझ्या लेकरा ❤❤❤
🎯 Key points for quick navigation:
00:00:00 *📚 Arrays store multiple values under a single name and can contain different data types like numbers, strings, or objects.*
00:01:22 *👨💻 In React, arrays manage dynamic content, such as rendering multiple similar components efficiently.*
00:02:49 *🔢 The `.length` property of an array returns the number of elements in it, showcasing its mutability.*
00:03:46 *🔄 Arrays are mutable, allowing their elements to be changed, unlike immutable strings.*
00:11:04 *✨ Methods like `push` and `pop` manipulate arrays by adding or removing elements from the end.*
00:12:18 *🧩 The `splice` method can remove or insert array elements at specified positions.*
00:16:02 *🍰 `slice` extracts parts of an array without altering the original array, starting at a given index.*
00:18:19 *🔍 The `forEach` loop operates on arrays, accessing values, indices, and original arrays efficiently.*
00:19:55 *🗝️ `for...in` loops iterate over object properties, distinguishing between own and inherited properties.*
20:46 *🔄 Using "for...of" loops to iterate over arrays is simple but requires correctly defining the array variable.*
21:15 *🚀 Moving into map, filter, and reduce functions can simplify array manipulation compared to traditional loops.*
22:12 *🔢 Using a "map" function to efficiently create a new array with transformed values, such as squaring each element.*
23:38 *⚙️ "Map" methods allow accessing elements, their indices, and original arrays if needed for complex transformations.*
24:32 *🧹 The "filter" function is crucial for UIs and selectively retrieves array elements based on conditions.*
25:28 *🔍 "Filter" methods leverage predicates-functions that return true or false for each element-to form new arrays.*
26:53 *🧮 The "reduce" method aggregates array elements into a single output by sequentially applying a function.*
28:18 *➕ Reducing arrays with a function like addition provides cumulative results, ideal for summarizing data.*
29:16 *📉 Though powerful, "reduce" is seen less often in practice compared to "map" and "filter."*
29:45 *🧩 "Array.from" converts objects, like strings, into arrays, useful for handling HTML collections in JavaScript.*
Made with HARPA AI
Main confess karta hu ki mujhe 11² = 121 nahi pata😁
Koi baat nhi
Ab ydd rahega hamesha 🤣🤣
Noob
5m toh bas shuruwat hai! Waiting for Diamond Play Button❤
shift and unshift operations beginning mein perform karte haii
ye jo shift hai na woh pop ka bhai hota hai..
ye jo unshift hai na wohh push ka bhai hota haiii
thank youu Harry bhaii❤
How the hell is everyone first here? 😅😅😂
When Harry Paji is the teacher every one wants to be the first to comment. ❤
@@ziaulislambhatt4685 really true 👏👏.
Yes we can push String as array is an object
ye jo shift hota hai voh pop ka bhai hota hai...
ye jo unshift hota hai voh push ka bhai hota hai...
Hats off Harry bhai.....🥰
shift jo hota hai wo pop ka bhai hota hai aur
jo unshift hota hai wo push ka bhai hota hai.
thanks Harry bhai
continuing in 2024 after exams see what i miss
Many Congratulations @Harry Sir for 5M. ❤💝 I was on 47th video of #sigma_batch_op but as I saw.. clicked on recent video to congrats you. 😊
Shift Pop ka bhai .....
Unshift Push Ka bhai .....
Harry Mera Bhaii❤
shift pop ka bhai hota hai...
aur unshift push ka bhai hota hai...
love you 3000 harry sir❤
thanks harry bhai i,m beginners & high level learn without pay
"ye shift jo hota vo pop ka bhai hota hai...
aur ye jo unshift hota hai vo push ka bhai hota hai..."
superb sir.
Shift pop ka bhai hota hai (shift starting me add karta hai aur pop end me add karta hai)
Unshift push ki behan hoti hai end jo (unshift shuru me add karta hai aur push end me add karta hai)
Yes it is possible because Arrey is mutable hence you can update the array by any method over it
Arrays in JavaScript are used to store multiple values in a single variable. They can hold different data types and are mutable, unlike strings. Arrays are commonly used in web development, such as in React components, to display repeated content. Key array methods include toString, join, pop, push, shift, unshift, concat, sort, splice, and slice.
Key moments:
00:05 An array in JavaScript allows storing multiple data types under one name, enabling flexibility in web development for tasks like creating components in React.
-Arrays are versatile in JavaScript, accommodating various data types like numbers, strings, and objects, providing a convenient way to manage and access multiple values efficiently.
-Arrays are commonly used in web development, especially in React components, where they help organize and display repetitive data like blog articles in a structured manner.
-Arrays in JavaScript are mutable, allowing for easy modification of elements within the array, unlike strings which are immutable and do not allow direct changes to their content.
06:06 Arrays in JavaScript are mutable objects, with methods like toString to convert arrays to strings, join to customize array element separators, pop to remove and return the last element, and push to add elements at the end.
-Understanding array methods like toString, join, pop, and push in JavaScript for manipulating array elements efficiently.
-Exploring the usage of shift and unshift methods to remove/add elements at the beginning of an array, and the importance of remembering these syntaxes for developers.
-Demonstrating the delete operator to remove specific elements from an array in JavaScript.
12:09 The video discusses array methods like concat, sort, splice, slice, and reverse, explaining their functionalities and usage with examples. It also demonstrates the implementation of loops in JavaScript for array manipulation.
-Explanation of array methods like concat, sort, splice, slice, and reverse with practical examples.
-Demonstration of how to use loops in JavaScript for array manipulation.
18:12 The video explains the concepts of forEach loop, for...of loop, and for...in loop in JavaScript, demonstrating how to iterate over arrays and objects efficiently using different loop methods.
-Explanation of forEach loop and how to use arrow functions with it to access value, index, and array elements.
-Demonstration of for...in loop for iterating over object properties and avoiding inherited properties.
-Introduction to map, filter, and reduce functions for manipulating arrays efficiently, with a focus on using map to create a new array with squared values.
24:14 Understanding how to use map, filter, and reduce functions in JavaScript can simplify code and solve specific problems efficiently. These functions help manipulate arrays and perform operations based on defined conditions.
-Map, filter, and reduce functions are essential for array manipulation and efficient coding in JavaScript.
-The importance and practical applications of the filter function in JavaScript, especially in UI development and React projects.
-Explaining the concept and practical usage of the reduce method in JavaScript for running functions on array elements to obtain a single value.
pop() : used to remove last element
push() : used to add an element from last.
shift() : used to delete an element from front.
unshift() : used to add an element from front,
pop aur shift bhai bhai.
push and unshift bhai bhai
yeh jo shift hai wo pop ka bhai hota hai..
or yeh jo unshift hai wo push ka bhai hota
or hum sab harry bhai ke student hote hai.
wah wah kya baat hai
pop = delete last element of array
push= for enter an element at the end of the array
shift = for deleting first element of array
unshift = for enter an element at the first position of an array
jo shift hota hai, wo pop ka bhai hota hai...
aur jo unshift hota hai, wo push ka bhai hota hai...
Harry bhai cha gaye!
Push() - Add an element from end in the array.
Pop() - Remove an element from the end in the array.
unshift() - Add an element at start in the array.
shift() - Remove an element at start from the array.
---------------
Push - unshift
Pop - shift
shift jo hota hai wo pop ka bhai hota hai aur
jo unshift hota hai wo push ka bhai hota hai
Thanks harry bro ❤
code with harry is one of the best channel for learning hats off yrr... lakin bhai like toh de de ROHAN KA DOST HUN MEIN
Ye jo shift( ) hota hai wo pop( ) ka Bhai hota hai aur jo unshift( ) hota hai wo push( ) ka Bhai hota hai.......😍😍
jo shift hota hai voh pop ka bhai hota hai...
jo unshift hota hai voh push ka bhai hota hai.
jo shift hota hai vo pop ka bhai hota hai
OR
jo unshift hota hai vo push ka bhai hota hai
LOVE FROM MY BHAI HEART 😁
Yes , we push any data type in an array
Thanks brother. Please dont stop this course until it's completed
Jo shift( ) hota hai wo pop( ) ka bhai hota hai
aur unshift( ) hota hai push( ) ka bhai.
Sigma batch OP!
Sigma batch op❤the best course it give me too much knowledge as a beginner ❤🎉
ye jo shift hota hai voh pop ka bhai hota hai...
ye jo unshift hota hai voh push ka bhai hota hai... vote for android dev course please this sigma course is OP java script is also OP
now im in my third year and trying my best to learn compete web dev in next 3 months i am on coreect path #sigmabatch op
Sir thank you for your contribution throughout my BS journey. Lot of love from Pakistan.
10:15 Yes it will Show in Array.
ye jo shift hota hai voh pop ka bhai hota hai...
ye jo unshift hota hai voh push ka bhai hota hai...
#sigmabatchop
#javascriptop
using reduce methode
let arr1=[];
let x=6;
for(let i=1;i{
return a*b;
})
console.log( arr1.reduce(fact));
harry bhai bahut maza aa raha keep going
AMAZING JOURNEYY TILL NOWW !! Thanks Harry bhai ... Very Productive Holidayss !! 🔥🔥
1. Shift is the brother of pop()
2. unshift is the brother of push()
SHIFT IS BHAI OF POP UNSHIFT IS BHAI OF PUSH
Shift == < pop >
Unshift == < push >
Harry bhai dil se thank you ❤❤
javascript is hard but your method is awesome
push ---> piche dalaga
unshift ---> aga dalega
pop ------->piche sa nikala ga
shift -----> aga sa nikala ga
kiya daalega bhai
sihft is the brother of pop ---> Deletion
while unshift is the brother of push ----> Addition
let a1 = [1, 2, 3];
let a2 = [4, 5, 6];
let a3 = [7, 8, 9];
let resultArray = a1.concat(a2, a3);
console.log(resultArray);
ye jo shift hota hai voh pop ka bhai hota hai...
ye jo unshift hota hai voh push ka bhai hota hai...
and harry sabhi coder ka bhau hota hai 🥳🥳😇
La Ilaha Illallah Muhammad Rasulullah SAW
SHIFT jo hota hai woh POP bhai hota hai
aur jo UNSHIFT hota hai woh PUSH ka bhai hota hai.....❤
started late brother but trying my best...its an awsome course 😎❤🔥
Shift pop ka bhai,
Unshift push ka bhai
ye jo shift hota hai voh pop ka bhai hota hai...
ye jo unshift hota hai voh push ka bhai hota hai..
"Shift" is the brother of "Pop".
"Unshift" is the brother "Push".
shift is a bro of pop while push is a bro of unshift. Therefore, pop is opposite from push as shift from unshift.
/* Wow! you read this, ab like kro coment ko */
Jo shift hota hai woh pop ka bhai hota hai, jo unshift hota hai woh push ka bhai hota hai 💡
ye jo shift hota hai pop ka bhai hota hai
ye jo unshift hota hai wo push ka bhai hota hai
push-->unshift
pop-->shift
{shift() is brother of pop() = true;
unshift() is brother of push() = true}
Pop, shift ka Bhai and push, unshift ka Bhai hota h
#Sigmabatch Op 😊
You are taking great pains for everyone, thanks a lot for it!🙏❤ #sigmabatchop #javascriptop
Shift is the sibling of pop
And unshift is the sibling of push
Congratulations 🎉 "Harry Bhai" for 5M
1) unshift push kaa bhai hota h
2) shift pop kaa bhai hota h
Sigma Batch OP!
shifte jo han pop ka bhai hn
our
unshift jo hain push ka bhai hn
our harry hamara bhai.
Shift jo hota hai wo "Pop" ka bhai hota hai aur "Unshift" jo hota hai wo "Push" ka bhai hota hai.
yeh jo shift hota hai woh pop ka bhai hota hai.....
aur yeh jo unshift hota hai woh push ka bhai hota hai.....
push () hota hai unshift () ka bhai
or shift () hota hai pop() ka bhai
Let me clear one thing...... The things which we are doing with map..... We can also do with forEac
...maybe