Learn JavaScript SWITCHES in 6 minutes! 💡

  Рет қаралды 26,426

Bro Code

Bro Code

Күн бұрын

Пікірлер
@BroCodez
@BroCodez Жыл бұрын
const day = 7; switch (day) { case 1: console.log("It is Monday"); break; case 2: console.log("It is Tuesday"); break; case 3: console.log("It is Wednesday"); break; case 4: console.log("It is Thursday"); break; case 5: console.log("It is Friday"); break; case 6: console.log("It is Saturday"); break; case 7: console.log("It is Sunday"); break; default: console.log(`${day} is not a day`); }
@BituBhai-x3t
@BituBhai-x3t 8 ай бұрын
Why did you use "const" over comment and in the video you used "let"? I am sorry i am a beginner.
@RainNebula
@RainNebula 7 ай бұрын
@@BituBhai-x3t "let" is used to define a variable in JavaScript. "const" is also used to define a variable. The only difference is "const" makes a constant variable, that is one that stays constant and can't change. For the purpose of just the switch statement it doesn't really matter. However, if the switch statement had something like " case 7: day += 1; break; " then "const" wouldn't work as it cannot be changed, it stays constant at what it was initially set to. That's my understanding at least. Looking into the differences between the two can potentially give more insight.
@trevorhegstrom2816
@trevorhegstrom2816 2 ай бұрын
"Pizza is not a day, but it really should be." Wise words.
@mehnajiktafena
@mehnajiktafena Жыл бұрын
Dude I can't thank you enough right now❤❤❤
@piotrmazgaj
@piotrmazgaj 5 ай бұрын
This is my seal. I have watched the entire video, understood it, and I can explain it in my own words, thus I have gained knowledge. This is my seal.
@djo_shorts6154
@djo_shorts6154 Жыл бұрын
Love you bro 🙌✨
@fachihul
@fachihul Жыл бұрын
Is it brand new course?
@andrediegues2740
@andrediegues2740 11 ай бұрын
Hey, I've been watching your videos about learning code, and I find them really helpful, thank you. However, I was thinking through the example that you gave with the Grade System, and I find there's something missing there. The grades are usually from 100 to 0, so the default part of the work does not have any mistakes, but there is a maximum grade. And if I put 101 or any other superior value, it's still A, how do I put it so that it stops in 100?
@codingchannel7351
@codingchannel7351 10 ай бұрын
You could add a case testScore > 100 with something like "score can't be over 100" for the letterscore
@andrediegues2740
@andrediegues2740 10 ай бұрын
@@codingchannel7351 Thank you!
@iagomartinez3019
@iagomartinez3019 Жыл бұрын
great video bro!
@SourovChandraBarmon
@SourovChandraBarmon 6 ай бұрын
Thanks a lot sir🥰
@TheConnection-d4l
@TheConnection-d4l 3 ай бұрын
Wha5s the use of it for an app
@mathMetallica123
@mathMetallica123 6 ай бұрын
Couldn't help myself; case 3 logs It is Wednesday, my dudes.
@futuredoctor7148
@futuredoctor7148 11 ай бұрын
thnx bro
@ProgrammingMatters
@ProgrammingMatters Жыл бұрын
🤗🤗🤗
@1T_pressly
@1T_pressly Жыл бұрын
@maximillianramirez1189
@maximillianramirez1189 2 ай бұрын
Thanks bro
@christiangeorge5313
@christiangeorge5313 3 ай бұрын
Dude I can't thank you enough right now❤❤❤
Useful JavaScript STRING METHODS 🧵
8:03
Bro Code
Рет қаралды 26 М.
If statements in JavaScript are easy 🤔
15:58
Bro Code
Рет қаралды 48 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,3 МЛН
JavaScript Global Execution Context Explained!
27:25
Piyush Garg
Рет қаралды 12 М.
Топ 5 ОШИБОК Новичков в REACT
13:07
gorbatkoff
Рет қаралды 7 М.
Learn Switch Statements In 7 Minutes
6:57
Web Dev Simplified
Рет қаралды 48 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,3 МЛН
How To Study Programming The Lazy Way
11:15
The Coding Sloth
Рет қаралды 764 М.
Learn Closures In 13 Minutes
13:22
Web Dev Simplified
Рет қаралды 72 М.
Learn JavaScript WHILE LOOPS in 8 minutes! 🔁
8:12
Bro Code
Рет қаралды 39 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 102 М.