If and Else statement in
HTML-код
- Опубликовано: 21 авг 2024
- Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
All the learning resources such as code files, documentations, articles and community discussions are available on our website:
chaicode.com/
You can find our discord link, github link etc on the above website.
Twitter/X link: x.com/hiteshdo...
Discord link: hitesh.ai/discord
Learn React with 10 projects: • Let's learn react from...
Learn Docker: • A practical guide on D...
Learn Kubernetes: • Complete Kubernetes Co...
How does a browser works: • How does a browser wor...
How nodejs works: • How node JS works | En...
Learn Redux-toolkit: • Learn Redux Toolkit in...
Learn NextJS: • Nextjs Full stack course
Learn Typescript: • Why to learn Typescript
Learn Javascript: • Welcome to new JavaScr...
Learn React Native: • React Native Mastery: ...
Learn Zustand: • React state management...
Learn Golang: • How to get started wit...
Videos in a proper sequence and with discussion support are available at my website (of course free). It's easier for me to address issues at one place, instead of drilling into every video. A quick word, please help others in the discussion too.
courses.learncodeonline.in/learn/Javascript-for-2018-developer
Sir can u make sql or mysql full crash course video...
#Thank_you_very_much sir
//Grade problem
//student marks
//50-good
//30-poor
//0-fail
var marks=72
if(marks=50)
{
console.log("amaZing")
}
else if(marks30)
{
console.log("GOOD")
}
else
{
console.log("POOR")
}
**with range**
var print = console.log
var marks = 9
if(marks === 0 ){
print('Fail')
}else if(marks
Hitesh is in infinite loop today (unstoppable)
You are my favorite teacher of all time. Thanks sir.
Thank You Sir , and I did my assignment...!
var studentMarks = '10'
if (studentMarks === '10') {
console.log('Amaming');
} else if (studentMarks === '5') {
console.log('Good');
} else if (studentMarks === '3') {
console.log('Poor');
} else if (studentMarks === '0') {
console.log('Fail');
} else {
console.log('Not a student');
}
sir, you are great.. watching your videos in 2020..
let marks= '9'
if(marks == '10'){
console.log("amazing you've got a choclate")
} else if (marks
It should be marks >= 5 in line 6, otherwise the else block will not make sense.
Sir please make videos of JavaScript in which we see the application of JavaScript how we use JavaScript for making dynamic web pages.
studentMark = 0
if (studentMark == 10 ) {
console.log('amazing')
} else if (studentMark == 5) {
console.log('good')
} else if (studentMark == 3) {
console.log('poor')
} else if (studentMark == 0) {
console.log('fail')
} else {
console.log('plz enter your mark correctly')
}
var marks=4
if(marks==10)
console.log('amazing');
else if (marks=5)
console.log('good');
else if(marks=3)
console.log('poor');
else if(marks=0)
console.log('fail');
else
console.log('check again');
unstoppable..
very nice teaching
var marks = 1;
if (marks == 10) {
console.log('Amazing')
} else if (marks >= 5) {
console.log('Good')
} else if (marks >= 3) {
console.log('Poor')
} else if (marks >= 0) {
console.log('Fail')
}
var marks = 5
if (marks == 10)
{
console.log("Amazing")
}
else if (marks == 5)
{
console.log("Good")
}
else if (marks == 3)
{
console.log("Poor")
}
else
{
console.log("Fail")
}
good sir. really love you please upload your live stream today
For Range
var marks = 1;
if (5
Var studentMark = 9;
If (studentMark < 10){
Console.log('Amazing') };
ElseIf (studentMark == 5){
Console.log('Good')}
Elseif (studentMark ==3){console.log("Poor")}
Else {Console.log("fail")};
var mark = 0;
if(mark 5) {
console.log('Amazing')
} else if(mark 3) {
console.log('Good')
} else if(mark 0) {
console.log('poor')
} else {
console.log('fail')
}
output is coming as fail only
@@shreejasoni5171 yes since mark = 0 u will get fail... U can change the mark to any value below and equal to 10 so you can get those output
Great sir ..... Today you are uploading 3 videos of js that is cool sir...you are very fast sir... thanks for this videos...
Count that again
Sorry sir sorry ...im doing this for your reply sir ..... there are total 8 videos ......you are my ideal sir .... thanks a lot for your all priceless videos....love you sir🙏🙏🙏
Sir in our education system we want teacher like you.... because sir in india there is very few numbers of good teachers......and sir you are one of those
My favorite concept from today😅😅🤣🤣
Wow! Amazing explanation.. But i am not happy with youtube notification.. Why he is not sending it.. Bte you are amazing
you are great dada
//solved grade problem.
//code by Tahir Ahmed
let num = 7;
if(num >= 6 && num < 10 ) {
console.log('amazing');
}
else if(num >= 4 && num < 5) {
console.log('good');
}
else if(num >= 1 && num < 3) {
console.log('poor');
}
else {
console.log('fail');
}
Sir,what is true and what is false there?
Nothing is declared before..
Great series on javascript
Damn good teacher I ever scene in utube... I'm big fan of you sir...
let std_mark= prompt('Enter Your Score');
alert('Thanks !');
if (std_mark==10) {
console.log('Awesome-SuperB');
}
else if (std_mark==5) {
console.log('Good,Improve Yourself');
}
else if (std_mark==3) {
console.log('Poor Score,Need More Hardwork');
}
else if (std_mark==0) {
console.log('Fail,Better Luck Next Time');
}
else{
console.log('Your Result Is Pending');
};
Loved it man. Keep it up.
let marks = 0
/// Enter marks here
marks = 0
if (marks>=6)
{
console.log("Amazing")
}
else
{
if(marks
you're the best!!!!!!!!!!!
you r awesome sir
sir I have learnt java and now learning js. I had a question. Is there something like === in java as well. waiting for your reply. And please upload some tutorials on java as well
Java is already available at courses.learncodeonline.in
In java == check both value and type but in js == check only value and === check value plus type
Sir you are using visual studio code. What's your opinion on webstorm ide by jetbrains dedicated for JavaScript. Jetbrains make a lot of awesome ide s. Wouldn't it be a good option for beginners?
//Assignment
let Grade=10;
if(Grade==10){console.log("Amazing");}
else if(Grade==5){console.log("Good");}
else if(Grade==30){console.log("Poor");}
else if(Grade==0){console.log("fail");}
else {console.log("Grade doesn't exist");}
prompt("Thank you");
//Grade Problem
var studentmarks = 5
if (studentmarks === 10){
console.log('amazing')
}else if (studentmarks === 5){
console.log('good')
}else if (studentmarks === 3){
console.log('poor')
}else{
console.log('fail')
}
if(isGrade==10){
console.log("Amazing")
}else if (isGrade==5) {
console.log("Good")
}else if (isGrade==3) {
console.log("Poor")
}else if (isGrade==0) {
console.log("Fail")
}
let studentMarks = 10;
if (studentMarks == 10) {
console.log('Excellent');
} else if (studentMarks == 5) {
console.log('Good');
} else if (studentMarks == 3) {
console.log('Work Hard');
} else if (studentMarks == 0) {
console.log('Fail');
} else {
console.log('please enter valid marks');
}
after listening that whether u subscribe or not I just click the subscribe button ;)
just tried:
var studMarks = "5"
if (studMarks == 10) {
console.log("Amazing")
}
else if (studMarks >= 5) {
console.log("Good")
}
else if (studMarks >=3) {
console.log("poor")
}
else {
console.log("Fail")
}
thanks a ton! its easier than c++
I know JavaScript atleast the intermediate level and also working on this but i have no idea why i am still watching this 😂
challenge done!😎
can you please share the code
Thx very, very much.
watched your previous videos
❤️
May i have similar videos of react.js??
Grade Solution:
var myGrade = '10'
if (myGrade === '10') {
console.log('Amazing')
} else if (myGrade === '5' ) {
console.log('Good')
} else if (myGrade === '3') {
console.log('Work Harder')
} else if (myGrade === '0') {
console.log('Fail')
} else {
console.log('You Trippin Dawg')
}
var grade = 11;
if(grade == 10){
console.log("Amazing");
}
else if(grade == 5){
console.log("Good");
}
else if(grade == 3){
console.log("Poor");
}
else if(grade == 0){
console.log("Fail");
}
else{
console.log("No Valid Grade was added");
}
message for Hitesh Choudary: I have done your grade problem correctly. but when I press enter it says 'reference error'
Done
var MarksObtained = 10
if(MarksObtained === 10){
console.log('pass')
console.log('Amazing Keep it up')
}
else if(MarksObtained === 5){
console.log('pass')
console.log('nice Work harder')
}
else if(MarksObtained === 4){
console.log('Fail')
console.log('try your best next time')
}else{
console.log('Absent')
}
sir i done the challenge
var stMarks = 5;
if (stMarks > 5 && stMarks 3 && stMarks 0 && stMarks
in last else statement there should be enter valid input
God why I'm not getting notification.....
While(1) mode
Sir , No notifications for all your back to back uploads 😥
Hi Sir , how can i call a windows services from Javascript and to link with a softkey button in HTML
Super quality videos but why very few views??
That's how RUclips works :)
Hitesh Choudhary I want this Chanel to be the India's best number one tech tutor chanel . Sir please do something to improve your chanels popularity please sir.
Wow..
**Grade problem solution**
let grade = 1
if (grade 8) {
console.log("BRAVO! You are so intelligent");
} else if (grade < 8 && grade >= 5) {
console.log("ITS FINE");
} else if (grade < 5 && grade >= 3) {
console.log("you are SO POOR")
} else {
console.log("FAIL");
}
Saturday Live Tonight???
Hey Sir, Can you give some examples where I can use JavaScript?
Looks like you skipped the starting videos
sir grade problem solution
var mark=10;
if (mark >= 1) {
if (mark
Can you create js course and upload in youtube
How you got that code ***** voice!?😀
Else if is not defined. This is error which is throwing someone help me solve it
if there are more then 3 conditions then how to use if,else if,else conditions
you can use as much as you want
like if you have 5 condition
if(Condition 1){
block 1
} else if(condition 2){
block 2
}else if(condition 3){
block 3
}else if(condition 4){
block 4
}else {
block 5
}
Saturday live?
Who came here due to quarantine holidays....
😀😀😀
if (Hitesh Choudary Uploded){
const me = watch it instantly
}
let studentMarks = '0';
console.log(studentMarks);
if (studentMarks == 10) {
console.log('Amazing');
} else if(studentMarks == 5 ){
console.log( 'Good');
} else if( studentMarks == 3) {
console.log( 'Poor');
} else if( studentMarks == 0) {
console.log( 'fail');
}
@hitesh Choudhary please check this sir...
@rimshamuneer496@gmail.com
:D
i wanted to learn java and so I chosen this but after 10 videos i realised that this is java script, not java. I don't find java tutorial on this channel. is java and java script both same? I wanted to learn basic java. plz help
Java and JavaScript both are very different its just like sugar and salt both look similar but are dead opposite...
@@kartikphadke7529 so the coding style is different for the same outlut?
You talk too much and teach less, it's more details on the problem statement you want to solve more than the solution and it's concept