Тёмный

Learn JavaScript SWITCHES in 6 minutes! 💡 

Bro Code
Подписаться 2,2 млн
Просмотров 19 тыс.
50% 1

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@BroCodez
@BroCodez 11 месяцев назад
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 5 месяцев назад
Why did you use "const" over comment and in the video you used "let"? I am sorry i am a beginner.
@RainNebula
@RainNebula 3 месяца назад
@@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.
@andrediegues2740
@andrediegues2740 7 месяцев назад
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 7 месяцев назад
You could add a case testScore > 100 with something like "score can't be over 100" for the letterscore
@andrediegues2740
@andrediegues2740 7 месяцев назад
@@codingchannel7351 Thank you!
@piotrmazgaj
@piotrmazgaj Месяц назад
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.
@mehnajiktafena
@mehnajiktafena 11 месяцев назад
Dude I can't thank you enough right now❤❤❤
@fachihul
@fachihul 11 месяцев назад
Is it brand new course?
@TheConnection-d4l
@TheConnection-d4l 17 дней назад
Wha5s the use of it for an app
@djo_shorts6154
@djo_shorts6154 11 месяцев назад
Love you bro 🙌✨
@mathMetallica123
@mathMetallica123 2 месяца назад
Couldn't help myself; case 3 logs It is Wednesday, my dudes.
@SourovChandraBarmon
@SourovChandraBarmon 2 месяца назад
Thanks a lot sir🥰
@iagomartinez3019
@iagomartinez3019 9 месяцев назад
great video bro!
@futuredoctor7148
@futuredoctor7148 7 месяцев назад
thnx bro
@1T_pressly
@1T_pressly 11 месяцев назад
@ProgrammingMatters
@ProgrammingMatters 11 месяцев назад
🤗🤗🤗
Далее
Useful JavaScript STRING METHODS 🧵
8:03
Просмотров 19 тыс.
If statements in JavaScript are easy 🤔
15:58
Просмотров 36 тыс.
Qalpoq - Amakivachcha (hajviy ko'rsatuv)
41:44
Просмотров 437 тыс.
Шоколадная девочка
00:23
Просмотров 454 тыс.
Learn JavaScript STATIC keyword in 8 minutes! ⚡
8:03
File I/O in C++
11:47
Просмотров 41
Learn JavaScript ARROW FUNCTIONS in 8 minutes! 🎯
8:02
JavaScript REST PARAMETERS in 8 minutes! 🗄
8:06
Просмотров 19 тыс.
Learn JavaScript WHILE LOOPS in 8 minutes! 🔁
8:12
Build a JavaScript random password generator 🔑
12:05
Learn JavaScript LOGICAL OPERATORS in 5 minutes ❗
5:42
JavaScript VARIABLES are easy! 📦
12:49
Просмотров 64 тыс.
Learn JavaScript CALLBACKS in 7 minutes! 🤙
7:17
Просмотров 54 тыс.
Qalpoq - Amakivachcha (hajviy ko'rsatuv)
41:44
Просмотров 437 тыс.