JavaScript Chapter 6 - Practice Set | JavaScript Tutorial in Hindi #29

  Рет қаралды 257,821

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер
@sameerahmedshaikh4479
@sameerahmedshaikh4479 2 жыл бұрын
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
@ujjawalmehrotra1995 2 жыл бұрын
interviews ke liye kaise prepare kre plus kha se apply kre for interviews ?
@sameerahmedshaikh4479
@sameerahmedshaikh4479 2 жыл бұрын
@@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.
@uzmakhan2301
@uzmakhan2301 2 жыл бұрын
Hii
@sameerahmedshaikh4479
@sameerahmedshaikh4479 2 жыл бұрын
@@uzmakhan2301 Hii
@bhumishingh7664
@bhumishingh7664 2 жыл бұрын
Hy
@entertainingworld1546
@entertainingworld1546 Жыл бұрын
Even the paid courses also don't match with this level of quality content. Thank you so much bhaiya love you❤❤
@abhishekgond7300
@abhishekgond7300 2 жыл бұрын
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"))
@TheRipper-gf8et
@TheRipper-gf8et 7 ай бұрын
thanks buddy.
@nadeemabdun8357
@nadeemabdun8357 2 жыл бұрын
Bahut sari fun elements 🤣, Especially the loop one, Learning ki sath laughing that's what makes you special.💛
@hackerunknown8809
@hackerunknown8809 2 жыл бұрын
Console. Tulu function barhiyaaa tha bhai
@kaushikrajit5169
@kaushikrajit5169 Жыл бұрын
Are Bass Kr Bhai 🤣🤣🤣
@xeno-m1194
@xeno-m1194 Жыл бұрын
Circus how gya dosto 😂😂
@MavericksBlue
@MavericksBlue 2 жыл бұрын
Till now one of the best practice set 😂
@harshrajvarma4758
@harshrajvarma4758 2 жыл бұрын
Harry bhai padhane ke sath sath entertainment ka bhi pura khyal rkhte hai🤣🤣🤣
@CommonStudentActivity
@CommonStudentActivity Жыл бұрын
🥰❤❤‍🩹✌✌✌
@debabratadas4021
@debabratadas4021 Жыл бұрын
1- let a=prompt("you can drive"); if (a
@nabeelahmad8761
@nabeelahmad8761 2 жыл бұрын
Big respect for you. You are doing such a great work.You are my motivation. God bless you.
@vishalagarwal1971
@vishalagarwal1971 2 жыл бұрын
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.
@ratneshsiddha
@ratneshsiddha 2 жыл бұрын
Harry bhai , app bohot mst kaam krte ho harry bhai , please esehi tutorial bnate rho, may God bless you a healthy and wealthy life
@sukanyas4218
@sukanyas4218 Жыл бұрын
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
@smartlearner333
@smartlearner333 Жыл бұрын
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😃🥺
@shivamtiwari4293
@shivamtiwari4293 2 жыл бұрын
Knowledgeable👍👍👍 Thanks for making this JavaScript course🙏🙏🙏
@BLACKWIZX
@BLACKWIZX 3 ай бұрын
are bas kar bhaiii was epic , one of the best js series on youtube ever
@aaqibalam4221
@aaqibalam4221 Жыл бұрын
Sir, Your lectures are absolutely fantastic..... Lots of information with memes.... It makes the lecture super awesome! 💐⚡
@bemadamigos6622
@bemadamigos6622 2 жыл бұрын
11:48 Bhaisaab humour ekdum top tier hai 🤣🤣🤣
@MathsKingRavi
@MathsKingRavi 3 ай бұрын
Thank you sir and Big brother
@internetgeek8728
@internetgeek8728 2 жыл бұрын
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') }
@saddubhaiii
@saddubhaiii Жыл бұрын
Your humour is on point😂😂....Love to learn from you❤❤
@Abhay_Rangera
@Abhay_Rangera Жыл бұрын
11:49 maajaaaaaaaa hi aa gya yr 🤣🤣🤣🤣🤣🤣🤣
@mi.ve_arts
@mi.ve_arts Жыл бұрын
oh bas kar bhai was superb
@codingwithshiku4735
@codingwithshiku4735 Жыл бұрын
harry bhai maza aa gya sukriya bhai
@shydcuk
@shydcuk Жыл бұрын
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") ;
@neoanderson7528
@neoanderson7528 10 ай бұрын
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
@akashpatil9865
@akashpatil9865 Жыл бұрын
11:49 / 12:46 - document.body.style.background= prompt("Enter colour: ");
@Demon-Senpai
@Demon-Senpai 2 жыл бұрын
by practicing and watching ur videos i have improved in codding console.tullu
@shivamraj1784
@shivamraj1784 Жыл бұрын
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") }
@2ameridiem
@2ameridiem Жыл бұрын
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.
@2ameridiem
@2ameridiem Жыл бұрын
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
@saurabhwadekar8110
@saurabhwadekar8110 Жыл бұрын
Are bas kar bhai meme!!!!!!!!!!😃😃 Quality content!!!!!!!!!!!!!!!!!!!!!
@wahabkhokhar8826
@wahabkhokhar8826 2 жыл бұрын
Most amazing I love it ab interest barh raha hai bhai
@GeetaChaudhary-o9p
@GeetaChaudhary-o9p 11 ай бұрын
very interesting lecture. thank u bro very helpful thank u for giving these lectures for free
@toufikumar7169
@toufikumar7169 2 жыл бұрын
Maja a geya video dekh kar 👍😍
@sandiproy3417
@sandiproy3417 2 жыл бұрын
Harry bhaiya maja araha hai 🥰🥰🥰😍😍😍😍🤩
@dearprogrammer3455
@dearprogrammer3455 Жыл бұрын
11:49 Maan lo maine magenta kiya Aree bss krr bhai Harry bhai tussi great ho Matlab padhai ke sath memes bhi😂😂
@KaushalDonga
@KaushalDonga 7 ай бұрын
wahhh harry bhai last me color wala bus kr bhai very funny🤣🤣🤣 tusi greate ho bhai
@LovepreetKumar-us6gw
@LovepreetKumar-us6gw 27 күн бұрын
Thanks buddy, You are amazing!
@asifali-fc8xt
@asifali-fc8xt 2 жыл бұрын
your lectures play very important role in my learning
@littleexperiance2147
@littleexperiance2147 2 жыл бұрын
Any body now difference between java and Javascript
@FandM-d5k
@FandM-d5k 2 жыл бұрын
Best teaching harry bhai 🔥🔥
@technikalproblem6780
@technikalproblem6780 2 жыл бұрын
Thank you so much sir for creating this video for us!
@usamabaig8591
@usamabaig8591 5 ай бұрын
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?") }
@AKitexpert
@AKitexpert 2 жыл бұрын
harry bhai ajj ti practice boht achi thi maza agaya
@shreyashtidke5269
@shreyashtidke5269 2 жыл бұрын
Very good explanation..
@ashutoshdash140
@ashutoshdash140 2 жыл бұрын
harry bhai😂, mere saath bhi same isuue hogaya tha, mera bhi infinite loop me chalagaya tha ek baar, phir new repl bana liya.
@sachigoyal9300
@sachigoyal9300 8 ай бұрын
But how to solve that one?
@inf008shorts
@inf008shorts Жыл бұрын
I first tried it myself. And then see your answer. I found a better way to do 1 question.
@priyanshubehera8085
@priyanshubehera8085 2 жыл бұрын
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 ;
@usamabaig8591
@usamabaig8591 5 ай бұрын
let age =prompt("Please Enter the age:") if (age>=18){ alert("you can drive") } else{ alert("you can not drive") } Question:1
@akashkumbhar3791
@akashkumbhar3791 Жыл бұрын
maja aa raha hai ...big boss
@mrcoll2518
@mrcoll2518 2 жыл бұрын
i solved only four question but that was very enjoying experience for me .. // question 1 let age=prompt("enter your age"); if(age>=18){ document.write("you can drive the car"); if(age
@WorldCommunityCorner
@WorldCommunityCorner 2 жыл бұрын
Thank You very very much for this amazing practice set ❤🌹🙏
@maazkhan5410
@maazkhan5410 Жыл бұрын
3:25 let age = prompt("Enter your age") if(age
@NamanCodes
@NamanCodes Жыл бұрын
its wrong you have not converted the age from string to integer
@vivekkapil4571
@vivekkapil4571 Жыл бұрын
Thanks Harry bhai for providing a cool js playlist 🎉
@shwetashrivastava8374
@shwetashrivastava8374 2 жыл бұрын
thnku so much for this series
@kumarvlogs298
@kumarvlogs298 Жыл бұрын
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
@williamahsan1010
@williamahsan1010 2 жыл бұрын
4:42 Harry bhai Problem No 2 me best approach tha ki do while loop use karte
@SunehraTabassum-sx2dh
@SunehraTabassum-sx2dh 2 ай бұрын
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();
@haroonkhan1040
@haroonkhan1040 2 жыл бұрын
You are so good teacher. Love 😍 from PAKISTAN ❤️❤️❤️❤️
@littleexperiance2147
@littleexperiance2147 2 жыл бұрын
pakistan kha say Any body now difference between java and Javascript
@s2ndanish473
@s2ndanish473 2 жыл бұрын
Machate Raho 🤘
@oneminutenews6771
@oneminutenews6771 2 жыл бұрын
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 } }
@optimus2793
@optimus2793 2 жыл бұрын
This course is best i am loving❤️ it harry bhai💯😚🔥🔥🔥 One small request try to increase frequency of video :-)
@abhishekkamble3975
@abhishekkamble3975 Жыл бұрын
main bhi fass gaya while loop main...
@pranshukaushik7104
@pranshukaushik7104 2 жыл бұрын
Thanku for all the efforts u are making to teach us 😄😄😄😄
@jaspreetsinghdwakhari9570
@jaspreetsinghdwakhari9570 Жыл бұрын
adhbut attttti uttaaam
@muhmmadarshadmuhmmadarshad3054
@muhmmadarshadmuhmmadarshad3054 2 жыл бұрын
Thanku so much sir today is my internal practical exam in uni
@CVR2113
@CVR2113 21 күн бұрын
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
@rulebreaker4384
@rulebreaker4384 2 жыл бұрын
Allhmdulliah done with lectr 29 .. love from Pakistan
@PRALAY.THAKUR
@PRALAY.THAKUR Жыл бұрын
Nice explainnation 🎉🎉
@educationalxentertainmente9351
@educationalxentertainmente9351 2 жыл бұрын
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
@littleexperiance2147 2 жыл бұрын
Any body now difference between java and Javascript
@educationalxentertainmente9351
@educationalxentertainmente9351 2 жыл бұрын
@@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.
@littleexperiance2147
@littleexperiance2147 2 жыл бұрын
@@educationalxentertainmente9351 Thanks dear so much
@Alone42
@Alone42 2 жыл бұрын
💕 best chennall on KZbin harry BHAi
@一百零八萊奧桑德
@一百零八萊奧桑德 Жыл бұрын
bas kar bhai was on point🤣
@utkarshsinghtiwari5424
@utkarshsinghtiwari5424 2 жыл бұрын
Thanks Harry bhai 😊😊
@s2ndanish473
@s2ndanish473 2 жыл бұрын
Harry bhai is great 🔥
@mohdnaeemkhan8
@mohdnaeemkhan8 2 жыл бұрын
Bhai kon si ide use kr rahe hai is video me?
@roster6292
@roster6292 2 жыл бұрын
@@mohdnaeemkhan8 ye replet he
@REDISCOVERTHEWORLD
@REDISCOVERTHEWORLD Жыл бұрын
practice 2nd do{ let age=prompt("enter age"); age>25?alert("eligible"):alert("not eligible"); } while(confirm("you want to see again"))
@priyanshutyagi_02001
@priyanshutyagi_02001 11 ай бұрын
Thankyou harry bhai❤
@dinoraj9049
@dinoraj9049 Жыл бұрын
Harry bhaiya is the best
@Lv_La_Lr
@Lv_La_Lr 2 ай бұрын
Harry Sensei OP ❤❤
@sameerkun
@sameerkun 2 жыл бұрын
I was watching so seriously but then this came 00:11:50
@factwithsujal4676
@factwithsujal4676 Жыл бұрын
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"); }
@AmanKumarSinhaOfficial
@AmanKumarSinhaOfficial 2 жыл бұрын
Ques 2 : ANS const eligible = (age) => { if (age >= 18) return true; return false; } let age = prompt("Enter your age"); age = Number.parseInt(age); let input = true; while (input) { age = prompt("Enter your age"); age = Number.parseInt(age); if (eligible(age)) { alert("Yes you can drive"); } else { alert("You can't drive"); } input = confirm("Do you want to enter age again?") }
@AARTIDEVI-sr1px
@AARTIDEVI-sr1px 2 жыл бұрын
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😅
@littleexperiance2147
@littleexperiance2147 2 жыл бұрын
Any body now difference between java and Javascript
@shrabonisinha
@shrabonisinha Жыл бұрын
The last one is very amazing
@cg.yamangaming4632
@cg.yamangaming4632 Жыл бұрын
Bhaiya your Net Time dailog very owsome
@arshiyanshaikh-code590
@arshiyanshaikh-code590 2 жыл бұрын
done, thank you bhai.
@factwithsujal4676
@factwithsujal4676 Жыл бұрын
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")};
@vishalkhandla6791
@vishalkhandla6791 4 ай бұрын
Most funny video till now , all of the meme are on point 🤣🤣
@irshadshaikh3431
@irshadshaikh3431 2 жыл бұрын
next level editing
@devtomar8472
@devtomar8472 11 ай бұрын
❤❤ se Thank you for 29
@no1typist
@no1typist Жыл бұрын
Thanks a bunch!
@tejasmahakalkar9392
@tejasmahakalkar9392 11 ай бұрын
5:05 -> Us Harry Bhai Us!!!!!😂😂😂
@ganeshparjapt1731
@ganeshparjapt1731 2 жыл бұрын
aaare bass kar baiiiii bichh jo comedy ke liyee thanksss 🤨😜😜
@varadacharya2802
@varadacharya2802 Жыл бұрын
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);
@mayurchotaliya5375
@mayurchotaliya5375 Жыл бұрын
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`); }
@036akberhussain
@036akberhussain Жыл бұрын
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 ?"));
@ececse
@ececse Жыл бұрын
thankyou bhaiya
@Ravi-oh8xz
@Ravi-oh8xz 2 жыл бұрын
Thanks Harry bhai
@noonedotcode
@noonedotcode 6 ай бұрын
We can Do let age = parseInt(prompt('Enter Your Age'))
@anshumanpandey109
@anshumanpandey109 2 жыл бұрын
// 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.
@mukunda-w9j
@mukunda-w9j Жыл бұрын
Write this windows.onload=function(){ Let color=prompt("enter a color") document.body.style.background=color }
@user-void.04
@user-void.04 2 жыл бұрын
Tysm brother
@AsimAbbasi753
@AsimAbbasi753 5 ай бұрын
Q1) let age = prompt("Enter your age") age = Number.parseInt(age) if (age < 18) { alert("You cannot drive") } else { alert("You can drive") }
@samarjeetsingh1710
@samarjeetsingh1710 10 ай бұрын
how strange that i am learning js from scratch and i did the second question in first attempt and my teacher harry sir did many attempts😅😅 by the way here is my code:- //QUES 2 let age = prompt("Please tell your age to know if you can drive or not:","0") age = Number.parseInt(age) const candrive=(age)=>{ return age>=18?"Yes you can drive":"You can not drive" } let confirm_age = confirm("Do you want to rewrite your age?") if(confirm_age){ age = prompt("Write again:","0") alert(candrive(age)) } else { alert(candrive(age)) alert("Thanks for the confirmation") }
@anubratachakraborty8962
@anubratachakraborty8962 2 жыл бұрын
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);
@tanmaykhatri6061
@tanmaykhatri6061 2 жыл бұрын
I solved first question in just one line of code: alert(`You can${Number.parseInt(prompt("What is your age"))
@rohitverma2178
@rohitverma2178 Жыл бұрын
😂😂😂😂😂 shabash beta , are bs kar bhai , it's too funny yr
Exercise 2 - Snake, Water and Gun| JavaScript Tutorial in Hindi #30
3:39
Walking the DOM | JavaScript Tutorial in Hindi #31
13:07
CodeWithHarry
Рет қаралды 318 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Slice and Splice in Javascript
7:56
Hitesh Choudhary
Рет қаралды 79 М.
JavaScript Chapter 8 - Practice Set | JavaScript Tutorial in Hindi #49
15:15
JavaScript alert, prompt & confirm | JavaScript Tutorial in Hindi #27
11:30
DOM, BOM & Window Object | JavaScript Tutorial in Hindi #28
11:28
CodeWithHarry
Рет қаралды 411 М.
Promise .then() and .catch() | JavaScript Tutorial in Hindi #55
16:50
CodeWithHarry
Рет қаралды 243 М.
Searching the DOM | JavaScript Tutorial in Hindi #36
23:27
CodeWithHarry
Рет қаралды 251 М.
Map, Filter & Reduce in JavaScript | JavaScript Tutorial in Hindi #20
12:49
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН