Day 04: MASTERING Control Flow in JavaScript With Quizzes 🤗

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

Welcome to Day 04 of the "40 Days of JavaScript." In today's session, we will learn about JavaScript's control flow and branching. If you have issues using if-else, switch-case, and when to use what, this video is for you with all the answers. You will also learn to answer a few code quizzes and plenty of them as task assignments.

Let's GO 🚀. Let's get started with it.

I have worked hard to provide you with the highest-quality content. Please SUBSCRIBE to the channel to show your support. Also, could you LIKE/COMMENT/SHARE this video so that it reaches others?

Thanks! 🫶

✅ Start 40 Days of JavaScript

Timecodes
0:00 - How to Start
02:04 - The Control Flow
04:46 - if-else and Branching
10:03 - The Voting
12:14 - Omitting Brackets
13:20 - Multiple if-else
22:58 - Nesting if-else
26:11 - Switch-Case
38:06 - if-else vs switch-case
42:40 - Ternary Operator
43:47 - Fall Through
45:06 - Task and Wrap up

## Join tapaScript Discord

## Download the 40 Days of JavaScript Tracker Template:

## Source Code on GitHub

## 👋 Like my work? Thank You. You can support & sponsor me:

## 🤝 My Links:

## About Me:
Tapas Adhikary is an Educator at tapaScript, a Tech enthusiast, Writer, YouTuber, and maintainer/contributor of open-source projects. He is a full-stack developer with vast experience building SaaS solutions. He is the founder of the ReactPlay platform, which is driven by open-source projects and a fast-growing community.

#javascript
#learnjavascript
#nodejs
#commonjs
#ecmascript
#javascriptmodules
#40daysofjavascript
Рекомендации по теме
Комментарии
Автор

Welcome to Day 04 everyone. 👏

This video covers the following topics:
- ✅ How to Start
- ✅ The Control Flow
- ✅ if-else and Branching
- ✅ The Voting Problem
- ✅ Omitting Brackets
- ✅ Multiple if-else
- ✅ Nesting if-else
- ✅ Switch-Case
- ✅ if-else vs switch-case
- ✅ Ternary Operator
- ✅ Fall Through
- ✅ Task and Wrap up

Please complete the session before you jump into the next one. You must complete the tasks as well. That's how you learn better. 💯

Check the video description for more details. 🤗

tapasadhikary
Автор

Thank you, sir — you make programming much easier for us programmers.

mashahbaz
Автор

Your contents are so high valuable sir definitely, in upcoming yrs when students see this then they will never leave your channel quality of teaching ..and I'm gonna tell to all my juniors to start on from english is also very easy to grab for us....

gurukrish
Автор

Just finished this tutorial. Now I feel confident about Javascript. Thank you

learner
Автор

অনেক ঘোরাঘুরির পরে (প্রায় ৩ বছর টিউটোরিয়াল টু টিউটোরিয়াল) আমি Day 04 পর্যন্ত পৌছেছি। আমার স্বপ্ন জাভাস্ক্রিপ্ট (ফ্রেমওয়ার্ক+লাইব্রেরি) দিয়ে একটা ই-কমার্স সাইট তৈরি করা। আশা করি এবার পারবো। ধন্যবাদ এত সুন্দর টিটোরিয়াল তৈরি করার জন্য।

learner
Автор

The content is reallywell explained. I love it. I am a mother of a 1.6 years old baby and i get to do all the learning while my baby is asleep. But i must tell you that sometimes i cannot wait for her sleep tim eto get to work. Thank you so much for all the hard work you are putting here for all of us. Is highly appreciated. 🤩

anamariamarchis
Автор

26:20 yes. I enjoy the course.
46:20 also it is so helpful.
From 🇧🇩

farhan-z
Автор

This video is outstanding, sir! The quality of the content is exceptional, and your explanation is crystal clear. You've truly done an incredible job!

praveensingh
Автор

Very very insightful. I had difficulty understanding the switch statement with my training but this is a lot simpler.

AgahNnaemeka
Автор

Loved the clear explanations! This series is a game-changer!

nikshadali
Автор

Sir. Really You are the true teacher, I'm get a great understanding about javascript, starting from now I can confidentlially code.

Alpha-Tube-tw
Автор

I have purchased a paid JS course but sill I'm taking this course again. There are a lot more things covered in this free course that was not part of the paid course. Thank you so much.

bhaskaranb
Автор

your sessions are really interesting, its worth to spend one hour for class your way of teaching is really interesting, thanks for giving me right platform to learn JavaScript

venkatatvenky
Автор

learning is going on very well making it easy to undersstand

tsamspace
Автор

Very Superb sir, everything so good ..I took it very seriously so that i will never fear or have unwanted doubts abt my JS skills ...so what I did is that I paid some mini amt to make myself involve into it....😇❤‍🔥

gurukrish
Автор

I understand how to use if else and switch cases and when to use it thank you😀

WWeekes-oxuv
Автор

Instead of an if else tree, I prefer to just use if's and break inside a do { } while (false);:
do {
if (condition1) {statements; break;}
if (condition2) {statements; break;}
if (condition3) {statements; break;}
/* else */ {statements; }
} while (false);

This makes adding, removing, and commenting out lines easier, IMHO. Furthermore, the break can be omitted where appropriate

dakra
Автор

Very informative and the way you have explained makes it much easier to understand looking forward to the next lessons

SadmanSakibAbir-ri
Автор

thank you very much u are the best God bless you

Stephengicheru-wx
Автор

1. JS code runs synchronously and line by line.
2. But using if-else, switch and so on we can skip some part of our code if we want.

if-else if - else :
1. helps us to conditionally run a chunk of code.

switch case:

1. when we need to check deferent scenarios based on one condition than use switch statement. (we can consider it, alternative of if else )
2. it is more performant than if else.
3. but for complex conditions its better to use if-else.

MdThamidulHasanSakib
visit shbcf.ru