While and do while loop in Javascript | chai aur #javascript

preview_player
Показать описание
Sara code yaha milta h

Discord pe yaha paaye jaate h:
Instagram pe yaha paaye jaate h:
Рекомендации по теме
Комментарии
Автор

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❤

zahid_
Автор

Kash aap humare clg main teaching kiye hote !
The best js series ever.
Thank you sir for this course.
Love you 3000

chandanparida
Автор

Loop Concept ko kisi ne itna ache se nahi padhai tha...Thanj you sir All concepts are very clear

bhagyashreenanda
Автор

hitesh sir is better tutor than code with harry

Abdullah-rxbm
Автор

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❤

RaviKumar-mxkx
Автор

🎯 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

Hafijur
Автор

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

hitendrasingh
Автор

one of the best premium channel for learning...

vmlxxjk
Автор

Woo kehta ha nah sir g 'Maza aya' 😁😁😁😁

Hammad-wpdm
Автор

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 🌹

tpkvoqj
Автор

Sir apke hindi lectures english se 10x jyada achhe hai kyu ki hindi lectures me actual understanding ke sath sath feel bhi hota h

Webngineer
Автор

Sir ap ki jaisa content purri YouTube University m nhi deta h koi ❤❤❤

ankittiwari
Автор

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.

kamitp
Автор

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 😂

aniketjha
Автор

"Every video in the Chai aur Code playlist is a masterpiece. Grateful for this learning journey!"

BitFire
Автор

bestest javascript series ever thanku soo much hitesh sir

sharjeelcode
Автор

sir aap ka content and teaching style bahut acha hai, bahut premium content hai isse channel pe

onetwo
Автор

you are gem
you are superb
explanation king

tech_channel
Автор

Thank for this playlist still continue and keep learning new concepts from this playist😇.

Daani
Автор

🎯 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

shareefbadshah
join shbcf.ru