JavaScript Tutorial in Hindi for Beginners [Part 10] - JavaScript Switch

preview_player
Показать описание
#Javascript #Tutorial #Hindi

In this video i will talk about switch in JavaScript.

The switch statement is used to perform different actions based on different conditions.

This is how it works:

The switch expression is evaluated once.
The value of the expression is compared with the values of each case.
If there is a match, the associated block of code is executed.
If there is no match, the default code block is executed.

In this Video Tutorial series I will giving you full training about Javascript from basic to advance level with easy and best explanation. If you like this Javascript tutorial in Hindi do leave us a comment.

Join this channel to support Tech Gun:
Рекомендации по теме
Комментарии
Автор

I just think that we have OR( || ) sign in JAVASCRIPT lets try that and it did work by putting OR ( || ) sign .Thank you sir
Your student From Pakistan :) .

if (input === 1 || input == "n" || input == "no") {
alert("login");
}
else if (input === 0 || input == "y" || input == "yes") {
alert("logout");
}
else {
alert("invalid information");
}

faizanullah-kyse
Автор

Tech gun is one of the best channel on youtube ever, waiting for complete javascript tutorial

rahulrj
Автор

Sir aap is par vedio banao ki html css se bana form kaise submit hota aur welcome message aata hai pura process

shekharstonevlog
Автор

There can be no other channel like this

mohibkhorajiya
Автор

love you sir thank you so much you are the best teacher🥰🥰🥰🥰💯💯❤❤

shayansultan-mqhp
Автор

Good work Sir .. 💯
Thanks A lot ...
Lot of appreciation to you ... 💯❤️

satyamsrivastava
Автор

Combine uploading time zaroor lay gay but trust me mujh jasy bohat sary students ki help ho jaye gy thanks alot for all lactures your way of teaching is marvellous.

makeup_artist
Автор

Thanks sir please upload videos every days and more then 6 videos

codeionic
Автор

Thank you soo much sir please upload atleast 3 to 4 lactures on regular base and i humbly request you pleasr combine this video in end beshaqh 2 parts may merge kar day agar zayadah ho gy lakin combine zaroor kary

makeup_artist
Автор

Is pure java script ko koi notes ho to dijiye sir. It will help
And thanks a lot sir. It's vey help

vishitaliya
Автор

Sir.. thanxs your explaing in deail...

yogeshlandge
Автор

Bro make projects with HTML5 and CSS3. It's a humble request.

androidworld
Автор

Sir ji please C programing language ka V ek tutorial banaiye Sir
Please please please

Trend_identifier
Автор

we can use simply if statement in simpler way to check multiple condition
let input = "1";

function find() {
if ((input === 1) || (input == "y") || (input == "yes") ) {
console.log("Continue...");
}else if ((input==0) || (input=="n") || (input=="no")) {
console.log("END....");
}else {
console.log("wrong input");
}
}

find();

Reehan
Автор

Ager switch ha to btana mera kam ha love that line 🖤

Ok-zxtj
Автор

Sir make some project in JavaScript.

🙏🏼🙏🏼

sibipatel
Автор

can you tell me how to create wallpaper downloading website

TechAdviceYoutube
Автор

Hello sir upload next video of javascript

satwikgawas
Автор

var i=prompt();

switch(true){
case(i>=90):
document.write("first division");
break;
case(i>=60):
document.write('second division');
break;
case(i>=50):
document.write('third division');
break;
default:
document.write('fail');
break;

};

R.W.Acrown
join shbcf.ru