While and do while loop in Javascript | chai aur
Вставка
- Опубліковано 19 вер 2024
- Visit chaicode.com for all related materials, community help, source code etc.
Sara code yaha milta h
github.com/hit...
Discord pe yaha paaye jaate h:
hitesh.ai/discord
Instagram pe yaha paaye jaate h:
/ hiteshchoudharyofficial
I just wanted to contribute a little bit of technical insight to the discussion. In the world of programming, we often refer to loops using two different control structures. The 'for' and 'while' loops are what we call 'entry control loops' because they check the condition before entering the loop. On the other hand, 'do-while' loops are known as 'exit control loops' since they ensure that the loop body is executed at least once before checking the condition.
Thank you so much sir.
lot's of love from Kashmir❤
Kash aap humare clg main teaching kiye hote !
The best js series ever.
Thank you sir for this course.
Love you 3000
Ho skta h bht jld kisi college me b pdhane lag jau 😁
par Sirji college wale Afford bhi karne chaheye na @@chaiaurcode
Government Collage 😅@@chaiaurcode
😅🤣@@chaiaurcode
Amazing explanation 😅😅
🎯 Key Takeaways for quick navigation:
00:00 🔄 *Overview of Loops in JavaScript*
- Loops in programming offer various versions and choices, creating flexibility.
- Understanding loops is crucial, as there are multiple variations and syntax changes.
- Programming provides numerous ways to achieve the same outcome; loops offer choices.
00:43 🔄 *Importance of While Loop in JavaScript*
- While loop is highlighted as the most important and commonly used loop in JavaScript.
- Other loops like for and do-while exist, each with slight syntax differences.
- Syntax differences between loops are manageable, contributing to language versatility.
01:09 🔄 *Introduction to While Loop Syntax*
- The while loop syntax is introduced and explained in comparison to other loops.
- Emphasizes the simplicity and significance of the while loop in programming.
- Acknowledges the syntax variations but highlights the foundational similarities.
01:53 🔄 *Understanding While Loop Execution*
- Demonstrates the syntax and structure of the while loop, including conditions.
- Initialization, condition check, and incrementation are key components in while loop structure.
- Encourages understanding the structure and syntax for effective loop utilization.
02:34 🔄 *Implementation of While Loop in JavaScript*
- Practical demonstration of a while loop in JavaScript, printing values.
- Highlights the importance of initialization, condition, and incrementation in the loop.
- Provides a clear example of a basic loop in action.
02:47 📝 *Loop Initialization and Index Modification*
- Importance of correct spelling and variable injection in loop.
- Emphasizes the need for conditions preventing infinite loops.
- Highlights the flexibility of using either increment or decrement in loops.
03:15 🔄 *Loop Execution and Value Printing*
- Demonstrates the loop execution with an example.
- Prints values within the loop to observe the iteration.
- Shows the significance of conditions in controlling the loop.
04:00 🧮 *Looping through Arrays*
- Introduces looping through arrays with a practical example.
- Discusses the importance of incrementing the index variable.
- Emphasizes simplicity and readability in coding practices.
05:09 💡 *Smart Coding Practices*
- Advocates for code readability and simplicity.
- Encourages short, understandable lines of code.
- Stresses the priority of code readability for effective programming.
06:06 🔄 *While and Do-While Loops Overview:*
- Discusses various loops in programming.
- Emphasizes the importance of correct output or result in programming.
- Introduces while, do-while, for, and nested loops.
06:34 🔄 *Wild Loop Execution:*
- Demonstrates the wild loop execution and its impact.
- Explains the nested loop concept.
- Highlights the condition checking in nested loops.
07:14 🔄 *Specialization in Nested Loops:*
- Explores the concept of specialized conditions in nested loops.
- Examines the order of condition checking.
- Demonstrates a practical example with nested loops.
07:45 🔄 *Score Calculation Loop:*
- Implements a loop for calculating a score.
- Discusses continuous run and changing conditions.
- Emphasizes the importance of changing conditions in loops.
08:22 🔄 *Handling Score Change:*
- Explains how conditions affect the score change in a loop.
- Demonstrates how loop conditions impact the output.
- Highlights scenarios where conditions are checked later in the loop.
08:50 🔄 *Handling Exceptions in Loops:*
- Discusses handling exceptions in regular and flow control loops.
- Mentions the relevance of exceptions in different scenarios.
- Highlights the commonality of exceptions in various programming situations.
09:30 🔍 *Syntax and Specialized Loops:*
- Introduces the commonality of using loops to fetch values from a database.
- Highlights the consistency of values, often in error format, when retrieved.
- Mentions the availability of specialized loops and direct properties for error handling in loops.
09:44 🔍 *Advanced Loop Structures:*
- Discusses the syntax and structure of specialized loops.
- Mentions upcoming videos that will delve into available loop options and error handling.
- Concludes the basic loop structure discussion and highlights the break and continue statements.
09:59 🔍 *Future Content and Conclusion:*
- Mentions plans for creating a more extensive video with a duration of five hours.
- Emphasizes the direct understanding of the content covered in the video.
- Encourages viewers to reach out on Discord for any questions or concerns.
Made with HARPA AI
Loop Concept ko kisi ne itna ache se nahi padhai tha...Thanj you sir All concepts are very clear
Amazing teaching skills.. thank you ❤
for and while are entry-controlled loops.
do-while is an exit-controlled loop.
for (initialization; condition; inc/dec) {
// code to be executed
}
while (condition) {
// code to be executed
}
do {
// code to be executed
} while (condition);
Each type of loop has its use cases, and the choice depends on the specific requirements of your code
hitesh sir is better tutor than code with harry
Bcoz , Hitesh sir have experienced, and spread the knowledge.....but code with Harry use his channel for the content trending 😅
It's my humble request to you 🙏, please don't do this type of comparison they both are legend from their own place 😊
Only first year noobs follow codewithharry, no hate to him but he skips a lot of things
@@helloworld2054that's what I want to say.
And thapa technical javascript playlist
I was countinously trying to understand the basics concepts of js and i gone through many other channels but this is the best ever series i have seen. More power to you champ love from Sindh 🌹
Hindu??
one of the best premium channel for learning...
Majak se hatke maine sach me pehli baar aisi series bina skip kiye follow kr rha hu just bcoz ki padhata har koi h but aap sabse alag ho
Thank you sir❤
🎯 Key points for quick navigation:
Loops in programming have various versions and syntax changes, but the basic concept remains the same.
While loops in JavaScript are easy to use, allowing for condition checks and execution based on the condition.
Incrementing or decrementing variables within the while loop helps avoid infinite loops.
It is important to understand the syntax changes and syntax variations when working with while loops.
Incrementing or decrementing inside a loop is not necessary, focus on looping and printing values.
Make sure the code is easily understandable for better readability and maintainability.
Understand the importance of conditions and how loops specialize in checking conditions.
Use loops wisely, and always focus on the expected output while incrementing values.
Consider different scenarios, such as nested loops, and understand when to change values within a loop.
Made with HARPA AI
How
it's a amazing series hitesh sir
Sir apke hindi lectures english se 10x jyada achhe hai kyu ki hindi lectures me actual understanding ke sath sath feel bhi hota h
00:03 Understanding the different types of loops in JavaScript.
01:09 Do while loop in JavaScript
02:17 Using while and do while loops in JavaScript
03:31 Understanding the while and do-while loop in JavaScript
05:00 Understanding loops and index increment in JavaScript
06:21 Nested do while loop in Javascript
07:55 The do-while loop in JavaScript can lead to unexpected behavior with certain conditions.
09:12 Specialized loops and common syntax for applying loops in JavaScript
bestest javascript series ever thanku soo much hitesh sir
speechless series
you are gem
you are superb
explanation king
Sir ap ki jaisa content purri UA-cam University m nhi deta h koi ❤❤❤
Woo kehta ha nah sir g 'Maza aya' 😁😁😁😁
agar me javascript ko pahle janta how good it is toh me c/c++ me offline center jake mere 6-7 months bacha leta or ek bar to police chalan bhi kat gaya tha 😂
Completed ✅✅
Thanks a lot sir for your contribution. Please don't stop making such beautiful content. There are students who really like and appreciate your efforts.
wow two back to back videos love you sir ❤
Best Js tutorial on youtube
Great Work, Thanks
As an experienced programmer, I say in while working in companies now a days, normal loops like for , while , do used veryless. So if you are a beginner, than you can use but once you get familalize with map, filter , reduce, find, some, every, forEach then you wouldn't touch those but still imp that how basic loops work because they new functions also do same thing on back side.
sir aap ka content and teaching style bahut acha hai, bahut premium content hai isse channel pe
Unique way to explain
excited to learn more!
love the series sir.
Loved your way of explanation. Its addictive. Thanks Sir
thanks for the best series
9:09 tru..😂😂😂, btw i have already subscribed .
Thank for this playlist still continue and keep learning new concepts from this playist😇.
sir waqai maza agya ap se seekh kr... pori mern k tutorial bana dein please....
haji😊 kya bhat ha sir ji
"Every video in the Chai aur Code playlist is a masterpiece. Grateful for this learning journey!"
Thanks for putting such a top notch content !!
Love you 3000 Sir ❤
Clear and done !
sir you are the best teacher
Awesome Content SIr...Very Easy Way of Explanation.....❤❤
masterpiece. thank you for amazing content
nice video
All hail to the Chaudhary saab...❤
Your tutorial is wow 😧😧
best explanation and to the point video
Thank you 🤍
const teacher = "hitesh sir"
let year = 1
while(year
Thank you so much ❤ your explanation is next level
awesome sir you are the best
Totally Understood. Thanks Sir ji
best series for java script
thanks for teaching sir
wow fantastic as always maja a jata hai apse padne m sir
thanks a lot sir pdane k liye or haan mai to 4k m padta hu
do-while be like " life me har kaaam mai ek baar jroor karta hu bina uska anjaam jane "
thanks a lot sir
Iss! Mei aur pehle keu nehi paiya is series ko. Take love ❤ from Bangladesh
i will DO attend the lecture while the series end 😄
Hahaha, nice one
thanx bro
you make it very easy.
great video sir
Amazing ....😍😍🙌
Thank you very much !!
i love this Playlist
best javascript tutorials on youtube
hanji sir kese ho ek no padate ho sir
Very informative video.. thank u sir♥️
loved your series
first time feeling that I'm comfortable in for loop, while loop and do while loop thank you sir ...
wow exception smjh aya
subs kam
quality jyada
mst tha sir
( majak se hatke sir boht hi suljha hua content hai ) thank you sir
Amazing explanation.
Thanks a lot
Awesome!!
Best playlist i ever seen
The best js series ever.
you are the best sir
thanks for this kind of videos....keep posting
love u sir from bangladesh...........
best js tutorial
easy to understand😍
Best js series ❤❤❤
Thanks
@@chaiaurcode ❤❤ bas aap series ko continue rakhiye aapka samjhane ka style best hai sir...
Nice 👍👍👍👍
best online course
love the way of teaching 🥰
WHAT GREAT SERIES
when i have hitesh sir than everything Is possible
Thank you sir❤️
28 VIDEO COMPLETE 🎉❤
Thank You Sir
Thank You 👍
Thankyou sir.
Best Teacher 🎉🎉🎉
Thank you so much
Sir good
Thank you so much sir 😊
Sir node.js ki bhi playlist banaiye please
NICE VIDEO
Sir Node Js pr viedo bnao
udhar vala example was related 😅😅😅
great
thank you☺
thanks sir ji
Understood
Sir ji subscribers b badh jaynge ap to bs ese hi video banate rahiyo baki ...
🌊🌊🌊🌊🌊🌊🌊
वैसे भी आपके चैनल पर बाढ़ जल्द आने वाली है। ❤❤❤❤
React k videos b wait kr rha hu iske bad ...👀
Vo b krwa denge, chinta na kro bs chai ka intezam rkho
@@chaiaurcode ✅👍
#bestJScriptSeries