I am still remember when I quit my job to follow my passion. And CWH is the first channel where I completed my web development series. The way of teaching is awesome. And bhai jo meme use karta hai usse to maza hi ajata hai. Being a 2015 pass out with zero knowledge & confidence, nai laga tha karpuanga. But today I can proudly say that, I am working as a Full stack developer. Skhukriya Bhaii❤❤
@@ujjawalmehrotra1995 frankly tell you. Mera aptitude utna sahi nai tha..so I tried internship. I started looking for companies jo internship k sath job offer de. And from internshala I found one company who hired me.
4:04 Harry bhai do-while loop se question 2 ekdm perfect ho jaa raha do{ let age = prompt("Enter your age"); age = Number.parseInt(age); if(age>18){ alert("You can drive") }else{ alert("You can not drive") } }while(confirm("check again"))
Hey Harry, You did a great job. And "Thanks" is very small word for all of your efforts. I believe "God Bless You" will be more apprepreate for your cpntinous endless efforts.
thank you so much harry bhaiya....as a student I was very confused about my career....but after following your videos and guidance today I am very confident and building projects in my own....thank you so much for educating us for free with such a dedication and hardwork....really thankful to you😃🥺
Today i solved all the prblms without looking to ur solution Really very happy today🤩 i was the one who had zero coding knowledge ,but now bcz of u i am coding at one level .Thanku soo much harry. U r the best teacher ever
Hey Harry in the second question there's a more simplest way to run the program let age= 18; let a =prompt("Enter Your Age Here") if (a>=age) { alert("You can drive") confirm("You want to see the prompt again") let a =prompt("Enter Your Age Here") } else{ alert("You cannot drive")
incorrect code. if someone is below the age of 18, the else block will run and the program ends. they won't be able to view the prompt again. you wanna keep asking the user if they wanna see the prompt and only stop when they press cancel.
let age = prompt('enter age') age = Number.parseInt(age); if (age >= 18) alert('you can drive!') else alert('cant drive!') let run = confirm('wanna see prompt again?'); while (run) { age = prompt('enter your age') age = Number.parseInt(age); if (age >= 18) alert('you can drive!') else alert('cant drive!') run = confirm('wanna see prompt again?'); } try this
Problem 2 : let a = prompt("Enter The Age : "); let b = confirm("Do you want to see prompt again") while(b){ a = prompt("Enter The Age : "); a = Number.parseInt(a); b = confirm("Do you want to see prompt again") } a < 18 ? alert("you cannot drive") : alert("you can drive") ;
what the point of writing the last conditional expression when neither it is under any variable or nor its is under the loop .. how you gonna call it ? i guess if you have wrote it than there must be use of it
VERY SIMPLE WAY TO DO "Q2" Harry Bhaiya!! function drive() { alert(` ${((prompt("Enter your age:")) < 18) ? "No, You cannot drive!!" : "Yes, You can drive"} `) } drive() let permission = confirm("Wanna see the 'prompt' again?") if (permission){ drive(); }else{ console.log('ok') }
while (c = 1) { let age = prompt("enter your age") const canDrive = (age) => { return age >= 18 ? true : false } if (canDrive(age)) { alert("you can drive") let c = 0 break } else { alert("you can't drive") let c = 1 } }
// problem 5(while using geting console error ) let color = prompt("Enter the page background color") document.body.style.background = color VM29:1 Uncaught SyntaxError: Identifier 'color' has already been declared and in BOM and DOM concept getting error: console.log(document.body) document.style.background = "yellow" null 28.js:3 Uncaught TypeError: Cannot set properties of undefined (setting 'background') at 28.js:3:27 28.html:40 Live reload enabled.
Ex.2 = do{ a = prompt("enter your age") a = Number.parseInt(a) sure = confirm("Do you want to re-enter your age? If yes then click 'yes' else 'cancel'") }while(sure) if (a>=18){ alert("you can drive") } else{ alert("you can't drive") }
@@littleexperiance2147 don't get confused between JS and Java they both are very different. like you can't compare appple and banan that's how can't compare JS and Java.One major difference between them is JS is use for Web development and Java is use for app development. Now you understand difference between them. Don't get confused by their name.
Love you bro ... Here are the solutions before watching your code Q1)let age = prompt("Enter the age :") age=Number.parseInt(age) if (age > 18) { alert("You can drive") } else {alert ("You can't drive ")} Q2)let age = prompt("Enter the age :") age=Number.parseInt(age) if (age > 18) { alert("You can drive") } else {alert ("You can't drive ")} confirm ("Do you wanna see the prompt again") if (age > 18) { alert("You can drive") } else {alert ("You can't drive ")} Q3) let age = prompt("Enter the age :") age=Number.parseInt(age) if (age 18) { alert("You can drive") } else {alert ("You can't drive ")} Q4) smajhhh m nhi ayaa :(( Q5)let color=prompt("Enter the color name you want to apply to the background"); document.body.style.backgroundColor= color ;
@@Gamer_0057 i think this guy belongs to a computer science or IT. If you are done your 12th in math/subject you can go btech in computer science/IT. or if you are commerce student you can go with BCA or bsc in computer science. All the best for your future 👍👍
@@littleexperiance2147 java is a programming language which pure object oriented programming language. While Javascript is a scripting language which is used with other programming language to do changes without reloading the site. Like ajax
Thanks bro app ki mene python in 15 hours wali video dekhi bhot ache se app ne python samjhaya hai thanks 😊😊 use video mai aapko thank nahi bol paya isliye aapki lastest video mai de raha hu😅
The best video of the playlist up till now The comedy level of harry bhai in this video is at a next hype...... Love you harry bhaiya... One day I will meet you..... The biggest motivator for me.......@CodeWithHarry
Q:2 let runAgain= true; function canDrive (age){ return age >= 18 ? true : false } while (runAgain) { let age = prompt("Please Enter the age:") age = Number.parseInt(age) if (age >= 18){ alert("you can drive") } else{ alert("you can not drive") } runAgain = confirm("Do you want to play again?") }
function test(){ let a = prompt("Enter your age"); a = parseInt(a); if(a >=18 ){ alert("You can drive!"); }else{ alert("You cannot drive!") } let con = confirm("You want to check again"); if(con){ test(); } } test(); use reccursion
here is how i coded : let question = prompt("Enter Your age"); question = Number.parseInt(question); const rungain = ()=>{ prompt("do you want to enter age again?") } const candrive = ()=>{ if(question >= 18){ alert("you can drive") } else { alert("you cannot drive") } rungain() } candrive();
solution for 2nd question can be done using do-while loop do{ let age = Number.parseInt(prompt("Enter your age ")) if (age < 18) { alert("You are under 18. You cannot drive") } }while(confirm("Do you want to enter age again ?"));
second alert("enter your age"); let run=true; while(run){ let a= prompt("age"); let b = parseInt(a); if(b>=18){ alert("you can drive"); } else{ alert("you cannot drive"); } run=confirm("you want again")};
question 1 simple alert("enter your age"); let a= prompt("age"); let b = parseInt(a); if(b>=18){ alert("you can drive"); } else{ alert("you cannot drive"); }
Hi, harry bhai. Hope you doing well! can't we just use if conditional in Q1 which is very easy and convenient. what is the point of creating a function here?
Q-2 let playagain = true while(playagain){ let age = Number(prompt(`Enter your age`)); alert(age>18? `you can drive` : `you can't drive`) playagain = confirm(`do you want to play again`); }
Another method to write the same code!!! do { let age = prompt("What is your age.") age = Number.parseInt(age) if (age >= 18) { alert("You are eligible for drive.") } else if ( age < 0){ console.error("You entered an invaild age.") } else{ alert("You should wait for " + (18 - age) + " years to be eligible to drive." ) } } while( confirm("Do you want to play agian.") == true )
the question2 can be solved using do while loop also let age; let again = 1; const canDrive = (age) => { return age >= 18 ? true : false; }; do { let age = prompt("enter your age : "); age = Number.parseInt(age); if (canDrive(age)) alert("You can drive"); else alert("You cannot drive"); again = confirm("Do you want to play again ?"); } while (again);
Even the paid courses also don't match with this level of quality content. Thank you so much bhaiya love you❤❤
I am still remember when I quit my job to follow my passion. And CWH is the first channel where I completed my web development series. The way of teaching is awesome. And bhai jo meme use karta hai usse to maza hi ajata hai. Being a 2015 pass out with zero knowledge & confidence, nai laga tha karpuanga. But today I can proudly say that, I am working as a Full stack developer. Skhukriya Bhaii❤❤
interviews ke liye kaise prepare kre plus kha se apply kre for interviews ?
@@ujjawalmehrotra1995 frankly tell you. Mera aptitude utna sahi nai tha..so I tried internship. I started looking for companies jo internship k sath job offer de. And from internshala I found one company who hired me.
Hii
@@uzmakhan2301 Hii
Hy
4:04 Harry bhai do-while loop se question 2 ekdm perfect ho jaa raha
do{
let age = prompt("Enter your age");
age = Number.parseInt(age);
if(age>18){
alert("You can drive")
}else{
alert("You can not drive")
}
}while(confirm("check again"))
thanks buddy.
Bahut sari fun elements 🤣, Especially the loop one, Learning ki sath laughing that's what makes you special.💛
Console. Tulu function barhiyaaa tha bhai
Are Bass Kr Bhai 🤣🤣🤣
Circus how gya dosto 😂😂
Till now one of the best practice set 😂
Harry bhai padhane ke sath sath entertainment ka bhi pura khyal rkhte hai🤣🤣🤣
🥰❤❤🩹✌✌✌
Big respect for you. You are doing such a great work.You are my motivation. God bless you.
1- let a=prompt("you can drive");
if (a
Hey Harry, You did a great job. And "Thanks" is very small word for all of your efforts. I believe "God Bless You" will be more apprepreate for your cpntinous endless efforts.
thank you so much harry bhaiya....as a student I was very confused about my career....but after following your videos and guidance today I am very confident and building projects in my own....thank you so much for educating us for free with such a dedication and hardwork....really thankful to you😃🥺
Harry bhai , app bohot mst kaam krte ho harry bhai , please esehi tutorial bnate rho, may God bless you a healthy and wealthy life
Today i solved all the prblms without looking to ur solution Really very happy today🤩 i was the one who had zero coding knowledge ,but now bcz of u i am coding at one level .Thanku soo much harry. U r the best teacher ever
Your humour is on point😂😂....Love to learn from you❤❤
Sir,
Your lectures are absolutely fantastic.....
Lots of information with memes....
It makes the lecture super awesome! 💐⚡
11:49 / 12:46 -
document.body.style.background= prompt("Enter colour: ");
Hey Harry in the second question there's a more simplest way to run the program let age= 18;
let a =prompt("Enter Your Age Here")
if (a>=age) {
alert("You can drive")
confirm("You want to see the prompt again")
let a =prompt("Enter Your Age Here")
}
else{
alert("You cannot drive")
}
incorrect code. if someone is below the age of 18, the else block will run and the program ends. they won't be able to view the prompt again. you wanna keep asking the user if they wanna see the prompt and only stop when they press cancel.
let age = prompt('enter age')
age = Number.parseInt(age);
if (age >= 18)
alert('you can drive!')
else alert('cant drive!')
let run = confirm('wanna see prompt again?');
while (run) {
age = prompt('enter your age')
age = Number.parseInt(age);
if (age >= 18)
alert('you can drive!')
else alert('cant drive!')
run = confirm('wanna see prompt again?');
}
try this
11:48
Bhaisaab humour ekdum top tier hai 🤣🤣🤣
Problem 2 :
let a = prompt("Enter The Age : ");
let b = confirm("Do you want to see prompt again")
while(b){
a = prompt("Enter The Age : ");
a = Number.parseInt(a);
b = confirm("Do you want to see prompt again")
}
a < 18 ? alert("you cannot drive") : alert("you can drive") ;
what the point of writing the last conditional expression when neither it is under any variable or nor its is under the loop .. how you gonna call it ? i guess if you have wrote it than there must be use of it
Knowledgeable👍👍👍 Thanks for making this JavaScript course🙏🙏🙏
This course is best i am loving❤️ it harry bhai💯😚🔥🔥🔥
One small request try to increase frequency of video :-)
4:42 Harry bhai Problem No 2 me best approach tha ki do while loop use karte
are bas kar bhaiii was epic , one of the best js series on youtube ever
VERY SIMPLE WAY TO DO "Q2" Harry Bhaiya!!
function drive() {
alert(` ${((prompt("Enter your age:")) < 18) ? "No, You cannot drive!!" : "Yes, You can drive"} `)
}
drive()
let permission = confirm("Wanna see the 'prompt' again?")
if (permission){
drive();
}else{
console.log('ok')
}
11:49 maajaaaaaaaa hi aa gya yr 🤣🤣🤣🤣🤣🤣🤣
your lectures play very important role in my learning
Any body now difference between java and Javascript
11:49 Maan lo maine magenta kiya
Aree bss krr bhai
Harry bhai tussi great ho
Matlab padhai ke sath memes bhi😂😂
0:24 chalo bhaiii
Are bas kar bhai meme!!!!!!!!!!😃😃 Quality content!!!!!!!!!!!!!!!!!!!!!
Harry bhaiya maja araha hai 🥰🥰🥰😍😍😍😍🤩
You are so good teacher.
Love 😍 from PAKISTAN ❤️❤️❤️❤️
pakistan kha say Any body now difference between java and Javascript
3:25
let age = prompt("Enter your age")
if(age
its wrong you have not converted the age from string to integer
Best teaching harry bhai 🔥🔥
Thank You very very much for this amazing practice set ❤🌹🙏
I first tried it myself. And then see your answer. I found a better way to do 1 question.
Maja a geya video dekh kar 👍😍
Thanku so much sir today is my internal practical exam in uni
oh bas kar bhai was superb
Machate Raho 🤘
harry bhai maza aa gya sukriya bhai
wahhh harry bhai last me color wala bus kr bhai very funny🤣🤣🤣 tusi greate ho bhai
while (c = 1) {
let age = prompt("enter your age")
const canDrive = (age) => {
return age >= 18 ? true : false
}
if (canDrive(age)) {
alert("you can drive")
let c = 0
break
}
else {
alert("you can't drive")
let c = 1
}
}
harry bhai ajj ti practice boht achi thi maza agaya
Thanku for all the efforts u are making to teach us 😄😄😄😄
We can Do
let age = parseInt(prompt('Enter Your Age'))
I was watching so seriously but then this came 00:11:50
Thank you sir and Big brother
Most amazing I love it ab interest barh raha hai bhai
Thank you so much sir for creating this video for us!
// problem 5(while using geting console error )
let color = prompt("Enter the page background color")
document.body.style.background = color
VM29:1 Uncaught SyntaxError: Identifier 'color' has already been declared
and in BOM and DOM concept getting error:
console.log(document.body)
document.style.background = "yellow"
null
28.js:3 Uncaught TypeError: Cannot set properties of undefined (setting 'background')
at 28.js:3:27
28.html:40 Live reload enabled.
Write this
windows.onload=function(){
Let color=prompt("enter a color")
document.body.style.background=color
}
very interesting lecture. thank u bro very helpful thank u for giving these lectures for free
Ex.2 =
do{
a = prompt("enter your age")
a = Number.parseInt(a)
sure = confirm("Do you want to re-enter your age? If yes then click 'yes' else 'cancel'")
}while(sure)
if (a>=18){
alert("you can drive")
}
else{
alert("you can't drive")
}
Any body now difference between java and Javascript
@@littleexperiance2147 don't get confused between JS and Java they both are very different. like you can't compare appple and banan that's how can't compare JS and Java.One major difference between them is JS is use for Web development and Java is use for app development.
Now you understand difference between them.
Don't get confused by their name.
@@educationalxentertainmente9351 Thanks dear so much
Love you bro ...
Here are the solutions before watching your code
Q1)let age = prompt("Enter the age :")
age=Number.parseInt(age)
if (age > 18) {
alert("You can drive")
}
else {alert ("You can't drive ")}
Q2)let age = prompt("Enter the age :")
age=Number.parseInt(age)
if (age > 18) {
alert("You can drive")
}
else {alert ("You can't drive ")}
confirm ("Do you wanna see the prompt again")
if (age > 18) {
alert("You can drive")
}
else {alert ("You can't drive ")}
Q3) let age = prompt("Enter the age :")
age=Number.parseInt(age)
if (age 18) {
alert("You can drive")
}
else {alert ("You can't drive ")}
Q4) smajhhh m nhi ayaa :((
Q5)let color=prompt("Enter the color name you want to apply to the background");
document.body.style.backgroundColor= color ;
Thanks buddy, You are amazing!
Harry bhai is great 🔥
Bhai kon si ide use kr rahe hai is video me?
@@mohdnaeemkhan8 ye replet he
Very good explanation..
Thank you sir i learnt alot From you and Tomorrow is my internal practical exam in college and this will help me ❤️🙏🏻
Bhaiya toh kya colleges mai js bhi sikhya jata hai? kon se semester mai? (im in class 8)
Any body now difference between java and Javascript
@@Gamer_0057 i think this guy belongs to a computer science or IT. If you are done your 12th in math/subject you can go btech in computer science/IT. or if you are commerce student you can go with BCA or bsc in computer science. All the best for your future 👍👍
@@littleexperiance2147 javascript is a scripting language where as java is a programming language
@@littleexperiance2147 java is a programming language which pure object oriented programming language.
While Javascript is a scripting language which is used with other programming language to do changes without reloading the site.
Like ajax
Thanks bro app ki mene python in 15 hours wali video dekhi bhot ache se app ne python samjhaya hai thanks 😊😊 use video mai aapko thank nahi bol paya isliye aapki lastest video mai de raha hu😅
Any body now difference between java and Javascript
maja aa raha hai ...big boss
Thanks Harry bhai 😊😊
The best video of the playlist up till now
The comedy level of harry bhai in this video is at a next hype......
Love you harry bhaiya...
One day I will meet you.....
The biggest motivator for me.......@CodeWithHarry
Thanks Harry bhai for providing a cool js playlist 🎉
Q:2
let runAgain= true;
function canDrive (age){
return age >= 18 ? true : false
}
while (runAgain) {
let age = prompt("Please Enter the age:")
age = Number.parseInt(age)
if (age >= 18){
alert("you can drive")
}
else{
alert("you can not drive")
}
runAgain = confirm("Do you want to play again?")
}
💕 best chennall on TH-cam harry BHAi
adhbut attttti uttaaam
Nice explainnation 🎉🎉
Allhmdulliah done with lectr 29 .. love from Pakistan
thnku so much for this series
practice 2nd
do{
let age=prompt("enter age");
age>25?alert("eligible"):alert("not eligible");
}
while(confirm("you want to see again"))
bas kar bhai was on point🤣
function test(){
let a = prompt("Enter your age");
a = parseInt(a);
if(a >=18 ){
alert("You can drive!");
}else{
alert("You cannot drive!")
}
let con = confirm("You want to check again");
if(con){
test();
}
}
test();
use reccursion
7:38
here is how i coded :
let question = prompt("Enter Your age");
question = Number.parseInt(question);
const rungain = ()=>{
prompt("do you want to enter age again?")
}
const candrive = ()=>{
if(question >= 18){
alert("you can drive")
}
else {
alert("you cannot drive")
}
rungain()
}
candrive();
let age =prompt("Please Enter the age:")
if (age>=18){
alert("you can drive")
}
else{
alert("you can not drive")
}
Question:1
Thankyou harry bhai❤
❤❤ se Thank you for 29
solution for 2nd question can be done using do-while loop
do{
let age = Number.parseInt(prompt("Enter your age "))
if (age < 18) {
alert("You are under 18. You cannot drive")
}
}while(confirm("Do you want to enter age again ?"));
Bhaiya your Net Time dailog very owsome
by practicing and watching ur videos i have improved in codding console.tullu
Harry bhaiya is the best
Most funny video till now , all of the meme are on point 🤣🤣
5:05 -> Us Harry Bhai Us!!!!!😂😂😂
Harry Sensei OP ❤❤
Q1.
let user = prompt('Enter your age');
user = Number.parseInt(user);
let ans = user>18 ? 'You can drive' : 'Sorry you are under age';
alert(ans);
next level editing
Harry bhai u r inspiration of many of us ❤ se thank you for such content for free gives always a motivation to become a successful developer
aaare bass kar baiiiii
bichh jo comedy ke liyee thanksss 🤨😜😜
The last one is very amazing
Q2 mein do while loop use karna chahiye tha na boolean variable ki jagah
Tysm brother
harry bhai😂, mere saath bhi same isuue hogaya tha, mera bhi infinite loop me chalagaya tha ek baar, phir new repl bana liya.
But how to solve that one?
second
alert("enter your age");
let run=true;
while(run){
let a= prompt("age");
let b = parseInt(a);
if(b>=18){
alert("you can drive");
}
else{
alert("you cannot drive");
}
run=confirm("you want again")};
question 1 simple
alert("enter your age");
let a= prompt("age");
let b = parseInt(a);
if(b>=18){
alert("you can drive");
}
else{
alert("you cannot drive");
}
Hi, harry bhai. Hope you doing well!
can't we just use if conditional in Q1 which is very easy and convenient. what is the point of creating a function here?
Thanks a bunch!
Q-2 let playagain = true
while(playagain){
let age = Number(prompt(`Enter your age`));
alert(age>18? `you can drive` : `you can't drive`)
playagain = confirm(`do you want to play again`);
}
I solved first question in just one line of code:
alert(`You can${Number.parseInt(prompt("What is your age"))
Thanks Harry bhai
6:40 crazy dead loop 🤣
Another method to write the same code!!!
do {
let age = prompt("What is your age.")
age = Number.parseInt(age)
if (age >= 18) {
alert("You are eligible for drive.")
}
else if ( age < 0){
console.error("You entered an invaild age.")
}
else{
alert("You should wait for " + (18 - age) + " years to be eligible to drive." )
}
} while(
confirm("Do you want to play agian.") == true
)
the question2 can be solved using do while loop also
let age;
let again = 1;
const canDrive = (age) => {
return age >= 18 ? true : false;
};
do {
let age = prompt("enter your age : ");
age = Number.parseInt(age);
if (canDrive(age)) alert("You can drive");
else alert("You cannot drive");
again = confirm("Do you want to play again ?");
} while (again);