JavaScript for Beginners #8 - Switch Statements

preview_player
Показать описание
In this javascript tutorial for beginners I will be teaching the switch statement! The switch statements is similar to an if but makes code much cleaner and easier to read. We will discuss when you would use a switch vs and if and else if block.

◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python

◾◾◾◾◾◾

⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡

Tags:
- Tech With Tim
- JavaScript for Beginners
- JavaScript Switch Statement
- JavaScript Switch Tutorial
- Switch JavaScript

#JavaScript #JS
Рекомендации по теме
Комментарии
Автор

At 1:10 When Tim said woaw woaw woaw, got me cracking up lmao

Sagedope
Автор

you should install Live Server extension so you don't have to refresh your html after each time you save your code.

CM_Burns
Автор

Man you are genius! Best explanation for switch for me! thank you

sergiisechka
Автор

Hi from Brazil! Your vídeo is awesome !

channelcrtl-ccrtl-v
Автор

Loved the examples. Super clear and informative!

crontsquared
Автор

I havent even watched but i know it will be usefull

Subscriberswithnovideosc-wvme
Автор

Tim you are plz upload more series on python projects....
The way you explain is nice ..God bless you😊😊

kisalaysuman
Автор

good well done you are clear my concept

waqarahmed
Автор

Can you do a PHP tutorial, please? To complete web programming tutorials?

bekhruzniyazov
Автор

can u explain GANs and its implementation in keras

pythonocean
Автор

I think gonna return wrong output for 17.9 & 18.1?

webflyer
Автор

Thank you, was pulling my hair out trying to figure out why my expression evaluations like switch(item){case item > 5...etc. weren't working.

stevenedwards
Автор

I used this code snippet instead. Would it be a problem for further and more complex implements?

const button =

button.onclick = function changeColor() {

const input =
const output =

if(input >= 18) {
output.textContent = "You are an adult."
}

else if (input < 18) {
output.textContent = "You are NOT an adult."
}

else {
output.textContent = "Not a valid input."
}

deroreads
Автор

why you don't use the 'Let ' syntax?

elmarzougui
Автор

At 5:24 - I always make them run this script if the date goes well...

SouthlandAve
Автор

I never use switch statements I use reduce on an array instead :-/ or map

Luxcium
Автор

We can use if elseif and else also so why switch?🙄

xqolunz
Автор

For a video on switches, you spent more time covering IF / ELSE statements.. You also didn't touch on switch fall through...

BelowAverageRazzleDazzle
Автор

Always remember to repent of your sins (sin is transgression of YAHUAH The Father In Heaven’s LAW: Genesis, Exodus, Leviticus, Numbers, & Deuteronomy) And Have Belief On Yahusha The Messiah. HE Died and Rose three days later so that you can be forgiven of your sins!

HE Loves you! Come to HIM🙂🙂🙂🙂🙂🙂🙂🙂

ReyBanYAHUAH