If Else Conditionals & Switches in JavaScript | JavaScript Tutorial In Hindi #8
Вставка
- Опубліковано 27 сер 2024
- I have an updated version of JavaScript course going on. This Ultimate JavaScript course is being supplied with handwritten notes and I highly recommend the latest course over this.
Must watch the updated course here: • JavaScript Tutorials f...
►JavaScript Tutorial For Beginners In Hindi Playlist - • JavaScript Tutorials I...
►Source Code + Other Material - codewithharry....
This video is a part of my JavaScript In Hindi Course. JavaScript is a high-level, interpreted programming language that conforms to the ECMAScript specification. JavaScript has dynamic typing, prototype-based object-orientation, and first-class functions.
Alongside HTML and CSS, JavaScript is one of the best and most demanded technologies of the World Wide Web. JavaScript enables interactive web pages and is a crucial part of web applications. The vast majority of sites use it, and major web browsers have a dedicated JavaScript engine in order to execute it.
As a multi-paradigm language, it supports event-driven, functional, and imperative programming fashion. It has APIs for dealing with text, arrays, regular expressions, and the DOM, but the language itself does not include any I/O, such as networking, storage, or graphics facilities. It relies upon the host machine environment in which it is embedded to provide these features.
►Click here to subscribe - / @codewithharry
Best Hindi Videos For Learning Programming:
►Learn Python In One Video - • Learn Python In Hindi ...
►Learn JavaScript in One Video - • JavaScript Tutorial
►Learn PHP In One Video - • Learn Php In One Video...
►Machine Learning Using Python - • Machine Learning Tutor...
►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
►Advanced Python Tutorials - • Intermediate/Advanced ...
►Object Oriented Programming In Python - • Object Oriented Progra...
►Python Data Science and Big Data Tutorials - • Python Data Science an...
Follow Me On Social Media
►Website (created using Flask) - www.codewithha...
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here
I have an updated version of JavaScript course going on. This Ultimate JavaScript course is being supplied with handwritten notes and I highly recommend the latest course over this.
Must watch the updated course here: ua-cam.com/play/PLu0W_9lII9ahR1blWXxgSlL4y9iQBnLpR.html
Thank You Harry 💌💌💌
My first programming language
and ...thank you so much. by your continuous effort we are learning in very easy way, free of cost.
Thank you Harry bhai..love you..♥️
Best JavaScript Tutorial On UA-cam.
Thank you Code With Harry 😃♥️
11:30
Question Solved Sir....
Answer :
let age = 18;
canVote = true;
if(age >= 18 && canVote ) {
console.log("You can vote");
}
else if(age
Bro Your condition is wrong... U can choose >= or
Wa Harry Bhai mst video bnayi apne,
Awesome tutorial bhai, i was new in programming and this is my first launguage after html and css, and i can easily access notes and all, wish me luck for the long journery,, allah hafizz
you are awesome.......i am a begginner and now i am learning very fast .........thanks bro
harry bhai, one short advice if new audience or new programmer are viewing this video, please pause and ask to take notes or make digital notes otherwise its seems that audience will learn JS by just watching the tutorial.
sir thank you so very much 😃♥️
Superb videos sir hats of to u
harry bhai, Hacktoberfest ke bare me btane ke liye shukriya
mai class 9 me padti hun aur maine T shirt jeet li.....................................................................
const a=12;
const b=12;
const c=12;
if(a==b && a==c && b==c ){
console.log('equivalent triangle');
}
if(a==b ){
console.log('isosceles triangle');
}
else {
console.log(' scalene triangle');
}
Iska O/P isoceles triangle ainga na ?
@@aavezshaikh143 equivalent and isosceles dono aaenge.
perfect explanation of if else and switch ..
11:30
let room1 = 23;
let room2 = 'Sam';
let stu = true;
if((room1 == 23 || room2 == 'Sam')&& stu ){
console.log('Printed all terms')
}
else{
console.log('Not Printed');
}
Thanks
आप इतना सारा फ्री में सिखा रहे है मेरे पास पैसे नहीं आपको देने को लेकिन मै आपके ads पर क्लिक नहीं करता हूँ ताकि आपको थोडा revenue generate हो सके
love you harry bhai for this type learning for free
proud to be an indian
jai hind jai bharat
Thank You very much bro.
Thank you so much sir for your high efforts
you are coding master!!!):):-
Thanks a lot Bhaiyaa
Thank you bhai ❤️
Great video🎺🎺🎺
Thanks bro❤❤
Js is so easy
Only because of Harry Bhai 🙏
Are not python also?
it is so difficult for beginners
for ex - me
Mast joke mara bhai😂😂
Thanks bro ♥️
best hai Sir jee
Thanx Harry
Data structure and algorithm plzzzzzzz
Thnx
love you bro!
var a=10
var b =15
console.log(ab);
asked in interview , Do this simple ques also
Lub you😍😍😍
I was thinking that I know 'if else " and so can I skip this video, but I have watched and as I expect I learn so many things. you are amazing.☺
Bhai operators ke baare me to btaya ni apne is poore course me?
Harry bhai makes everything easy..😊
💯💯💯
Harry bhai ek playlist "code with SEO "ho jaye please sir
Thank you Harry bhaiyya
zabardast tutorials
Congratulations on 1 million subscribers
some one please reply : there are situations we need to use multiple if (no else if ) and one else , in that condition to execute else condition all the if condition must be false at once
thank you so much sir
Done
Amazing tutorial sir
Sir data structure aur algorithm start kab karenge...
You can get a tutorial on edureka
I am yours big fan 💕💗💛💕💛💞🧡💕🧡💞🧡💕💛🧡💚🧡💕🧡and 30ty liker
04:50 - ===
08:41 - typeof variable
if anyone is having problem in switch then dont worry it is just for ur knowledge u will often use if else
harry bhai agar possible ho to sql ki bhi playlist banao
doing this after learning css
Hello Harry bhai please shall and bash language ke upar Ek video bana do...
good sir ji
Bro aapne es video me comparison operation ka use Kiya hai lekin es series me esse pehle comparison operator ke baare me bataya nahi hai
From where did you learn java script ?
Done done again
11:41
age = 15;
if (age == 15 || age < 15) {
console.log('you age not aligible')
} else if (age == 100 || age > 100) {
console.log('your are outdated God is waiting for you')
} else {
console.log('You are aligible')
}
nice harry bhiya
I have made default using template literals
Thank u so much bhaiya. Best channel to learn.
11:29
const marks_1 = 92;
const marks_2 = 75;
const marks_3 = 88;
if (marks_1 && marks_2 && marks_3 >=80) {
console.log("Your result is excellent");
}
else if ((marks_1 && marks_2) || marks_3 >=80){ console.log("Your mark_1 & mark_2 is good");
}
else if (marks_1 || (marks_2 && marks_3 >=80)){
console.log("Your mark_2 & mark_3 is good");
}
else {
console.log("Your result is poor!!!");
}
//output
Your result is excellent
love to learn
Thank you for providing free vedio. You are requested to provide chatsheet of all the vedios on nominal payment.
If else and switch condition work same?
Thank u for these videos Harry bhai....Great videos and Great contents
const age = 18;
const havelicense = true;
const alcohollevel = 0.1;
if (age>=18 && havelicense && alcohollevel
var age = 8;
switch (age){
case 18:
document.write('You are 18');
break;
case 28:
document.write('You are 28');
break;
case 38:
document.write('You are 38');
break;
default:
document.write('Age unknown');
break;
var ex=34
if(typeof ex !== "undefined" && ex>31 &&ex
if(testdrive && age=60)
{
console.log("you cannot drive");
}
else if(testdrive && 18
I would like to see you on the sundeep maheshwari stage ....
thank you so much harry bhai for your hardwork
Harry Bhai ye ap console.log me sub print kar rhe ho ye sb webpage pe kese print Hoga ?
Aapne Jo c language ke tutorial upload kiye the kya woh a to z C hai
Could you make a video on adding cut scenes in pygame
mujhe be ek Dil bro ♥️♥️♥️♥️♥️
If we want to use propmt for age
sir please django ka social app bna dijiye, ek video mai
Harry bhai default me bhi break hota hai kya?
Before go for conditions and datatypes , you should explain all type of operators first in the second video itself.
1 million subscribe from myself
great sir ji.
thank you harry almighty
Bhai plz es6-7 bhi cover krna course me and Dom bhi plz
Harry bhai switch program me default ke bad break kiw lagay hai
Thankyou Harry Sir ❤❤
Keep supporting Harry
Harry bhaii.... JavaScript k notes kaha milege ... Handwritten.... Plzzz inform me
const vari = "undefined"
if(typeof vari === 'undefined'){
console.log('Vari is defined')
}
else{
console.log("Vari is not defined")
}
why the output is coming vari is not defined please explain anyone?
14:11 main kauns extension use kiya hain
Bhai function in JavaScript pe video banao
Sir, में ws2812b rgb led strip को push बटन से control करना चाहता हूँ।
जब एक बार push बटन press करे तो led strip का color red हो जाय और दूसरी बार उसी बटन को press करने पर green हो जाये।
मेरा कहने अर्थ सिर्फ एक push बटन को 7 बार press करने पर पूरी स्ट्रिप का कलर change जो जाए। please इस पर एक वीडियो बनाओ।
Sir मुझे programming नही आती। क्या आप इसको modify कर सकते हो जैसा कि ऊपर कमेंट में request की है।
#include
#define Num_Strip1 60
#define Button 8
CRGB Strip1[Num_Strip1];
int Program = 0;
int maxProgram = 2;
int Num = 0;
int Run = 0;
int ButtonDelay = 200;
int Program0Delay = 100;
int Program1Delay = 100;
//int Program2Delay = 10;
unsigned long ButtonTime = 0;
unsigned long DelayTime = 0;
void setup()
{
pinMode(Button, INPUT_PULLUP);
FastLED.addLeds(Strip1, Num_Strip1);
Serial.begin(9600);
}
void loop()
{
if(digitalRead(Button) == LOW && millis() - ButtonTime > ButtonDelay)
{
ButtonTime = millis();
Num = 0;
Run = 0;
if(Program < maxProgram)
{
Program++;
for(int Num = 0; Num < Num_Strip1; Num++)
{
Strip1 [ Num ] = CRGB (255, 0, 0) ; // Red
}
FastLED.show();
}
else
{
Program = 0;
for(int Num = 0; Num < Num_Strip1; Num++)
{
Strip1 [ Num ] = CRGB (0, 255, 0) ; // Green
}
FastLED.show();
}
}
}
Let age = 16 :
Let adult = false:
If (age==18 && adult) {
Console.log(you are an adult of 18yrs. );
} else if (age==18 || adult) {
Console.log('You are either adult or below 18 ');
}else {
Console.log('baccha h re tu....');
Quiz answer.....😁
Thanks harry bhai 🔥❤️☺️
ek dikkat he esse sikh toh jaenge lekin jo agar website ya apps baane me thodi dikkat dsega jese ye kiss tarah se estemal kare
11:35 Solve:
var hasAdhar=true;
var age=20;
var nationality = "Indian";
if((hasAdhar)&&(age > 18) && nationality =='Indian'){
console.log("Eligible to Vote");
}
else{
console.log("Sorry! Ineligible!");
}
//Output:Eligible to Vote
Your qualifications plz
he is an nasa certified HTML hacker and he is from iit kharagpur
Plz tell me in details about form validation
//Do not declare variable marks.
//Write your code below this line.
if (marks >90) {
console.log("AA")
}
else if (marks >80 && marks70 && marks60 && marks 50 && marks 40 && marks30 && marks
bro u have confused it by doing else if, equals to, double equals to, and all in the same programme.
let age = 15
let weight = 65
if(age>18 && weight18 && weight
Please test this one:
// Students having (AGE > 17 OR HEIGHT > 5.5) AND (GRADE > 10) can join a party.
let age = prompt("Write your AGE: ");
let height = prompt("Write your HEIGHT (in feet): ");
let grade = prompt("Write your GRADE: ");
if ( (age > 17 || height > 5.5) && (grade > 10) ) {
console.log("Welcome! You can Join.")
} else {
console.log("Sorry! You cannot Join.")
}
Without Prompt:
// Students having (AGE > 17 OR HEIGHT > 5.5) AND (GRADE > 10) can join a party.
let age = 17;
let height = 5.6;
let grade = 13;
if ( (age > 17 || height > 5.5) && (grade > 10) ) {
console.log("Welcome! You can Join.")
} else {
console.log("Sorry! You cannot Join.")
}
const age = 17;
const Experience = true;
const qualification = true;
if (age=18 || Experience || qualification) {
console.log(" you can apply for this job");
}
else{
console.log("you are not qualified for this seesion or to move nest session and go to work hard to get good numbers then selected ");
}