Javascript | Lecture 9 & 10 combined | If else and switch statements | Web Development Course

Javascript | Lecture 9 & 10 combined | If else and switch statements | Web Development Course

Apna College

2 года назад

199,794 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Sanatani_Cyber 🚩: RUSHIKESH GADEKAR
@Sanatani_Cyber 🚩: RUSHIKESH GADEKAR - 20.09.2023 16:31

My confusion 😢 Chosen to Software Engineering VS Cyber Security I Am 12Class Learning Js And Python please Help Me😢

Ответить
Kamiyab ali
Kamiyab ali - 09.09.2023 10:54

Development Course

Ответить
Amit Vasani
Amit Vasani - 07.08.2023 10:27

which was the best for using If else statement switch statements or object literals

Ответить
SONU SHARMA
SONU SHARMA - 08.07.2023 13:03

I want some financial help for my PC setup. I have 20k but I want 27k more. Can you help?

Ответить
Ashwin Patel
Ashwin Patel - 01.06.2023 12:58

Capital of India is New Delhi

Ответить
ronit
ronit - 29.05.2023 06:29

I am watching from continuously

Ответить
Asmita Survashe
Asmita Survashe - 07.03.2023 21:27

sir ae fruits vala concept bohot hi jyda clear tha usme statements bade entertaining the😂THANKU 💖

Ответить
241_ Subham Kumar Prasad
241_ Subham Kumar Prasad - 09.02.2023 09:59

bro please speak loudly , your sound is very low.... I increase my volume 100% but your sound is still very low....

Ответить
Qudsia Noor
Qudsia Noor - 09.01.2023 07:19

Such a amazing explanation & also interesting examples in your great lecture....🤩🥳
Thank u so much💖

Ответить
PRO GAMERS
PRO GAMERS - 03.12.2022 20:38

The lecture notes was missing,but good work,Apna Collage

Ответить
DeepanshuGod999
DeepanshuGod999 - 06.11.2022 15:51

Ajj kal phalon ki keemat kuchh jyada he badh gayi hai.🤣🤣
Thank you very much your courses are helping me a lot.😇😇

Ответить
SM TECH
SM TECH - 15.10.2022 09:04

10 crore kuch jyada nhi hogya sir

Ответить
Rishikesh Nerkar
Rishikesh Nerkar - 21.08.2022 18:29

😂Aman sir aur puri team ekdm root se jude hai... HELLO WORLD ko Namaste World se replced kar dia waha tak to thik tha... ye JS ka fruit wala example dekh ke hasi nai ruk rahi thi😂 VERY EFFECTIVELY EXPLAINED SIR

Ответить
waleed kaleem
waleed kaleem - 24.07.2022 21:35

awesome bhai bohot ache sai samhaj agaya

Ответить
Anand Raj
Anand Raj - 19.06.2022 07:39

Please wrap all lecture in one Playlist

Ответить
Tech Plus
Tech Plus - 29.05.2022 08:15

Papita Rs.300 dozen😂

Ответить
Codewithakash
Codewithakash - 25.05.2022 03:43

Very much easily explained ❤️

Ответить
aram chalak
aram chalak - 18.05.2022 08:15

Who learn web dev successfully

Ответить
Pranjal Panghal
Pranjal Panghal - 09.05.2022 07:30

Kele kilo me kon deta h
Aam, papita in dozen. Like really :D

Ответить
LifeStory#Ashita
LifeStory#Ashita - 28.04.2022 17:40

Lecture 9, 10 completed

Ответить
Dileep S P S p
Dileep S P S p - 26.04.2022 04:53

Best simple way of teaching that too for free thanks brother..

Ответить
Sachin Mehra
Sachin Mehra - 21.04.2022 19:02

tumhari video mein ek bahut badhi belnder hai ki tum jo code likh rahe ho bas tum btate nahi ho ki sites mein uss code ka kya faiyada hai

Ответить
mohit prajapati
mohit prajapati - 31.01.2022 07:22

please complete the course

Ответить
Marketer
Marketer - 27.01.2022 08:40

How are you brother, hope you are doing well brother, we wanted to know that we have prepared the form, on HTML we have to link that form or not, can we send it to someone? please bro help me

Ответить
Abhishek Singh Chaudhary
Abhishek Singh Chaudhary - 09.01.2022 14:08

When do we use script tag inside body tag and when do we use script tag outside the body tag?? Please explain the difference

Ответить
Md Nadeem Asgar
Md Nadeem Asgar - 18.12.2021 19:19

Many advance concept of JavaScript is pending yet(Promise, async, await, callback, ES6). Please make videos on Advance JavaScript also.

Ответить
NATURE
NATURE - 29.11.2021 15:18

mila to thik nhi to aage badho 😄😄😄

Ответить
Gaurav Verma
Gaurav Verma - 22.10.2021 17:30

Sir is switch case can be run alert

Ответить
Anushka Agrawal
Anushka Agrawal - 01.10.2021 19:38

PLEASE UPLAOD PDF IT WOULD BE VERY EASY FOR US TO REVISE THE CODE I REQUEST YOU

Ответить
All Abouts
All Abouts - 01.10.2021 06:32

What is diff between if else if or switch statement

Ответить
Adarsh PWian 💀
Adarsh PWian 💀 - 08.09.2021 21:26

Hey, I have seen some 1st and 2nd lectures, but I am confused that will I be able to make a good website means will I be able to work as a freelancer for make websites ? can this course give enough training ? Please guide anyone. Is investing time in this course worth it?? Please tell seniors !!!

Ответить
Asif Iqubal
Asif Iqubal - 08.09.2021 10:18

Please upload the video fast

Ответить
Aman Kumar
Aman Kumar - 08.09.2021 09:52

Bhaiya please upload next video ASAP........

Ответить
Future Foundation Of Education
Future Foundation Of Education - 08.09.2021 07:15

Please complete the playlist as soon as possible and be consistent. As this course is Important for computer science students.

Ответить
Karan raj mahato
Karan raj mahato - 07.09.2021 15:11

Han bhaiya plz thoda jaldi khatam karde 🙏🙏

Ответить
Lalit Basista
Lalit Basista - 07.09.2021 09:16

Please consistently videos upload kardo aap log ke varose baithe he yahi se sikh rahe he 🙏🥺

Ответить
Ravikant Pandey
Ravikant Pandey - 07.09.2021 07:07

Hello Apna College, Course playlist kitna time lega pura video upload karne me? Please keep consistency and complete this course ASAP.

Ответить
Rakesh Walzade
Rakesh Walzade - 07.09.2021 06:45

Expecting this playlist like your c++ playlist.. Kindly complete this

Ответить
Anshuman Sengar
Anshuman Sengar - 06.09.2021 19:36

The most underrated is this course. Please focus on this also pls we are waiting 🥺🥺🥺

Ответить
Mohit369
Mohit369 - 06.09.2021 19:21

8 months hogyea web development series ko complete kub hogi...? Logo ka time pass kar te ho kya ..??

Ответить
SAYED JAYNUR ALI
SAYED JAYNUR ALI - 06.09.2021 18:39

thanku

Ответить
OXSTIF
OXSTIF - 06.09.2021 14:27

please upload videos fast ..... i loved web dev series

Ответить
AMAN YADAV
AMAN YADAV - 06.09.2021 07:09

Website publishing..?

Ответить
Sumit Singh
Sumit Singh - 06.09.2021 07:07

Bhaiya c++ka course khatam kya???

Ответить
HASAN KOYSOR
HASAN KOYSOR - 05.09.2021 20:39

after a long time waiting!

Ответить
Aditya Kumar Pandey
Aditya Kumar Pandey - 05.09.2021 16:58

Sir switch case me advance calculator kaise banyenge make vedio on this topic or if else me trafic light control sir niche bnane ki kosis ki h ak bar app ise smjha dete

Html code
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>aditya group</title>
<script type="text/javascript" src="script.js"></script>
<link rel="stylesheet" href="mystyle.css" type="text/css"/>
</head>

<body onLoad="">
<form action="#" name="calc" id="calc">

<input type="text" id="opt" name="opt" value="0" readonly />
<input type="button" class="btn" value="7" onClick="act('7')"/>
<input type="button" class="btn" value="8" onClick="act('8')"/>
<input type="button" class="btn" value="9" onClick="act('9')"/>
<input type="button" class="btn" value="+" onClick="act('plus')"/>

<input type="button" class="btn" value="4" onClick="act('4')"/>
<input type="button" class="btn" value="5" onClick="act('5')"/>
<input type="button" class="btn" value="6" onClick="act('6')"/>
<input type="button" class="btn" value="-" onClick="act('minus')"/>

<input type="button" class="btn" value="1" onClick="act('1')"/>
<input type="button" class="btn" value="2" onClick="act('2')"/>
<input type="button" class="btn" value="3" onClick="act('3')"/>
<input type="button" class="btn" value="*" onClick="act('multiply')"/>

<input type="button" class="btn" value="." onClick="act('decimal')"/>
<input type="button" class="btn" value="0" onClick="act('0')"/>
<input type="button" class="btn" value="/" onClick="act('divide')"/>
<input type="button" class="btn" value="=" onClick="act('equalsto')"/>
<input type="button" id="del" value="clear" onClick="act('del')"/>
<input type="button" class="btn" value="%" onClick="act('percent')"/>
</form>
</body>
</html>

// JavaScript Document

var val1, val2, sym, dec, pwr;
function act(val){
switch(val){
case '0':
if((document.getElementById('opt').value=="0")||(pwr==1)){
document.getElementById('opt').value = val;
pwr=0;
}else{
document.getElementById('opt').value += val;
}
break;

case '1':
if((document.getElementById('opt').value=="0")||(pwr==1)){
document.getElementById('opt').value = val;
pwr=0;
}else{
document.getElementById('opt').value += val;
}
break;

case '2':
if((document.getElementById('opt').value=="0")||(pwr==1)){
document.getElementById('opt').value = val;
pwr=0;
}else{
document.getElementById('opt').value += val;
}
break;

case '3':
if((document.getElementById('opt').value=="0")||(pwr==1)){
document.getElementById('opt').value = val;
pwr=0;
}else{
document.getElementById('opt').value += val;
}
break;

case '4':
if((document.getElementById('opt').value=="0")||(pwr==1)){
document.getElementById('opt').value = val;
pwr=0;
}else{
document.getElementById('opt').value += val;
}
break;

case '5':
if((document.getElementById('opt').value=="0")||(pwr==1)){
document.getElementById('opt').value = val;
pwr=0;
}else{
document.getElementById('opt').value += val;
}
break;

case '6':
if((document.getElementById('opt').value=="0")||(pwr==1)){
document.getElementById('opt').value = val;
pwr=0;
}else{
document.getElementById('opt').value += val;
}
break;

case '7':
if((document.getElementById('opt').value=="0")||(pwr==1)){
document.getElementById('opt').value = val;
pwr=0;
}else{
document.getElementById('opt').value += val;
}
break;

case '8':
if((document.getElementById('opt').value=="0")||(pwr==1)){
document.getElementById('opt').value = val;
pwr=0;
}else{
document.getElementById('opt').value += val;
}
break;

case '9':
if((document.getElementById('opt').value=="0")||(pwr==1)){
document.getElementById('opt').value = val;
pwr=0;
}else{
document.getElementById('opt').value += val;
}
break;

case 'plus':
val1 = parseFloat(document.getElementById('opt').value);
sym = 1;
pwr = 1;
dec = 0;
break;

case 'minus':
val1 = parseFloat(document.getElementById('opt').value);
sym = 2;
pwr = 1;
dec = 0;
break;

case 'multiply':
val1 = parseFloat(document.getElementById('opt').value);
sym = 3;
pwr = 1;
dec = 0;
break;

case 'divide':
val1 = parseFloat(document.getElementById('opt').value);
sym = 4;
pwr = 1;
dec = 0;
break;

case 'equalsto':
val2 = parseFloat(document.getElementById('opt').value);
switch(sym){
case 1:
document.getElementById('opt').value = val1+val2;
break;

case 2:
document.getElementById('opt').value = val1-val2;
break;

case 3:
document.getElementById('opt').value = val1*val2;
break;

case 4:
document.getElementById('opt').value = val1/val2;
break;


}

dec = 0;
break;

case 'del':
document.getElementById('opt').value = '0';
break;

case 'decimal':
while(dec!=1){
if((document.getElementById('opt').value=="0")||(pwr==1)){
document.getElementById('opt').value = ".";
pwr=0;
}else{
document.getElementById('opt').value += ".";
}
dec = 1;
break;
}

}
}

Ответить