JavaScript Chapter 5 - Practice Set on Arrays | JavaScript Tutorial in Hindi #21

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

CodeWithHarry

CodeWithHarry

Жыл бұрын

Link to the Repl - replit.com/@codewithharry/21C...
Join Replit - join.replit.com/CodeWithHarry
Download Notes - www.codewithharry.com/notes/
Ultimate JS Course Playlist: • JavaScript Tutorials f...
►Checkout my English channel here: / @programmingwithharry
►Instagram: codewithharry
python, C, C++, Java, JavaScript and Other Cheetsheets [++]:
Playlist: • Coding CheatSheets 🧾 b...
►Learn in One Video[++]:
Python[15 Hr] - • Python Tutorial For Be...
Python Advance[3.5 Hr] - • Python Programming Cou...
Python[1 Hr] - • Learn Python In Hindi ...
Python[2 Hr] - • Python Tutorial In Hin...
Python[15 Min] - • 15 Minute Python Tutor...
JavaScript[1 Hr] - • JavaScript Tutorial
C[1.3 Hr]- • C Programming Tutorial...
php[1 Hr] - • Learn Php In One Video...
php[2.3 Hr] - • Php Tutorial for Begin...
php[Project]- • Login And Registration...
HTML[30 Min] - • HTML 5 Tutorial For Be...
CSS[8.5 Hr] - • CSS Tutorial In Hindi ...
CSS[1.4 Hr] - • CSS 3 Tutorial For Beg...
Wordpress[3.2 Hr] - • How To Make a WordPres...
Angular[2 Hr] - • Angular Tutorial in Hindi
Java[2.3 Hr] - • Java tutorial in hindi 🔥
Web Scraping[1 Hr] - • Web Scraping Tutorial ...
MongoDB[2 Hr] - • MongoDb Tutorial For B...
Numpy[1 Hr] - • Numpy Tutorial in Hindi
Android Dev[12 Hr]- • Android Development Tu...
Linux[1 Hr] - • Linux Tutorial For Beg...
JQuery[1.1 Hr] - • jQuery Tutorial For Be...
Git and GitHub[1.1 Hr] - • Git & GitHub Tutorial ...
►Complete course [playlist]:
React - • React Js Tutorials in ...
Python- • Python Tutorials For A...
OOP Python- • Object Oriented Progra...
Java - • Java Tutorials For Beg...
JavaScript- • JavaScript Tutorials I...
PHP- • PHP Tutorials in Hindi
C- • C Language Tutorials I...
C++- • C++ Tutorials In Hindi
Git & GitHub- • Git and GitHub Tutoria...
Android Dev- • Android Development Tu...
Python GUI- • Python GUI: Tkinter Tu...
Web Development- • Web Development Tutori...
Python Django - • Python Django Tutorial...
Projects Using HTML, CSS & Javascript- • Projects Using HTML, C...
Data Structure and Algo - • Data Structures and Al...
Follow Me On Social Media
►Website (created using Django Rest & Angular) - www.codewithharry.com
►Facebook - / codewithharry
►Instagram - / codewithharry
Twitter - / codewithharry
Comment "#HarryBhai" if you read this 😉😉

Пікірлер: 460
@CodeWithHarry
@CodeWithHarry Жыл бұрын
Handwritten Notes access karein and apne gao ki zameen mere naam karein 🤣😅 Here is the playlist: kzfaq.info/sun/PLu0W_9lII9ahR1blWXxgSlL4y9iQBnLpR
@syedaanam9811
@syedaanam9811 Жыл бұрын
🤣🤣
@arvajkhan683
@arvajkhan683 Жыл бұрын
Harry brother typescript or javascript dono last tak dalna
@dramaworld3213
@dramaworld3213 Жыл бұрын
Hahaha kr diii
@shurime693
@shurime693 Жыл бұрын
Bhai thank you so much 😍 Cz apka video bohot helpfull hain.
@shreyas.sihasane
@shreyas.sihasane Жыл бұрын
Please read full comment 🥺 Harry bhai aap ekdam sahi padha rahe ho sab samaj Raha hai par.. Bhai ye JS jab me website banata hu tab Kaise use kare for example, agar muze menu bar ko click karne par sare options show ho jaye aur cross ❌ click karne pe options hide ho jaye aaise batao na plz... Muze yahi pe dikkat aa rahi hai You are doing great 👍❤️❤️❤️❤️
@lol_me8
@lol_me8 9 ай бұрын
Those who are not able to use prompt in replit, use this line at the very beginning of the code:- const prompt = require("prompt-sync")()
@jeetsingh-sy5ij
@jeetsingh-sy5ij 9 ай бұрын
Can you explain more about it? How to actually use it?
@badalbanjare3822
@badalbanjare3822 8 ай бұрын
Thanx Bro
@hariomsingh18156
@hariomsingh18156 8 ай бұрын
bhai thanku tu bhagwan solution nhi mil rha tha thanks bhai once again
@animeshanandcool
@animeshanandcool 6 ай бұрын
thnx it worked
@sawerasajid4309
@sawerasajid4309 6 ай бұрын
thank u so much i had to open console again n again thanks
@HuzaifaMuhammadSIddique
@HuzaifaMuhammadSIddique Жыл бұрын
Q1. Create an array of numbers and take input from the user to add numbers to this array. Q2. Keep adding numbers to an array in Q1 until the user adds 0. Q3. Filter the numbers that are divisble by 10 from an array. Q4. Create an array of squares of a given number Q5. Use reduce to calculate the factorial of a given number from an array of first n natural numbers. (n being the numbers whose factorial needs to be calculated)
@IamHamzaGujjar
@IamHamzaGujjar 2 ай бұрын
yr question 4 mein hum forEach kio nai use kr skty wo b to map ki tra har element pr function run krta ha?
@Simranjeetkaur-xe5kr
@Simranjeetkaur-xe5kr 2 ай бұрын
P
@CodeWithHarry
@CodeWithHarry Жыл бұрын
Code Backup Repository: github.com/CodeWithHarry/ultimate-js-course-youtube
@AbhishekThakur-we5ub
@AbhishekThakur-we5ub Ай бұрын
let arr = [1, 2, 3, 4]; let num = prompt("Amount of update"); let newNumber; let i = 0; while(i < num){ newNumber = prompt("Enter your number") ++i arr.push(newNumber) console.log(arr); } This is for when you have to decide how many number your want to add in your array First you have to give the Number of value you want to add and and the give the value you want to add
@mridulghoshshanto5472
@mridulghoshshanto5472 Жыл бұрын
// Here the all answer of chapter 5 // ---------Chapter 5---------- // Practice set 1 let marks = [45, 98, 67, 42, 65, 75, 87]; let newmarks = prompt("Enter Marks you want to add: \t"); newmarks= Number.parseInt(newmarks) marks.push(newmarks); console.log(marks); // Practice set 2 let marks = [45, 98, 67, 42, 65, 75, 87]; let add; do{52 add = prompt("Enter Marks: "); add = Number.parseInt(add); marks.push(add); }while (add != 0); console.log(marks); // Practice set 3 let marks = [45, 90, 60, 42, 70, 75, 80]; let divied = marks.filter((x) =>{ return x % 10 == 0; }); console.log(divied); // Practice set 4 let marks = [1,2,3,4,5,6,7,8,9]; let squre = marks.map((x) =>{ return x * x; }) console.log(squre); // Practice set 5 let marks = [1,2,3,4,5,6]; let fectorial = marks.reduce((x, y)=>{ return x * y; }) console.log(fectorial);
@bhavyaverma6271
@bhavyaverma6271 Жыл бұрын
hey i am facing problem in problem 2 using while loop can u help let a=[1,2,3,4,5]; let n; while(n!=0){ let n=prompt("enter nummber"); n=Number.parseInt(n); a.push(n); } console.log(a);
@waqarbaloch5
@waqarbaloch5 Жыл бұрын
@@bhavyaverma6271 let a=[1,2,3,4,5]; let n; while(n!=0){ n=prompt("enter number") n=Number.parseInt(n) a.push(n) } console.log(a)
@redhusky001
@redhusky001 Жыл бұрын
@@bhavyaverma6271 let arr=[1,2] let n while(true){ n=prompt("Enetr the Number") n=Number.parseInt(n) if(n==0) break else arr.push(n) } console.log(arr)
@IamHamzaGujjar
@IamHamzaGujjar 2 ай бұрын
Q4 mein hum Map ki jagah ForEach kio nai use kr skty wo b to har element pr function run krta ha can anyone explain.?
@soumyajitsatpathy3627
@soumyajitsatpathy3627 Жыл бұрын
You teaching style is totally different from everyone and this style make us so simple to understand complex things. Thanks for such an valuable course. JS rocks..Harry you are awesome 👏
@shydcuk
@shydcuk Жыл бұрын
6:24 for Those who want to solve it using while loop a = [2,3,4,5] let b while (b != 0) { b = prompt("Enter The Number to be pushed : ") b = Number.parseInt(b) a.push(b) } console.log(a);
@maddyshorts267
@maddyshorts267 9 ай бұрын
This one is more accurate
@shydcuk
@shydcuk 9 ай бұрын
@@maddyshorts267 Thanks bro
@sanaalam_
@sanaalam_ 8 ай бұрын
Thank youuuu
@shydcuk
@shydcuk 8 ай бұрын
@@sanaalam_ Glad it helped you
@muneebkarim3738
@muneebkarim3738 Жыл бұрын
Bhai sab batain alag Par Thumbnail Man Bht cute Lagta ho ❤️❤️❤️💜
@jaiswalji1507
@jaiswalji1507 Жыл бұрын
😜
@rishiraj2548
@rishiraj2548 Жыл бұрын
😍👍
@rishiraj2548
@rishiraj2548 Жыл бұрын
Bahut hossiyaar Jaisi
@flyhigh7250
@flyhigh7250 Жыл бұрын
😂saala gay
@sudip4930
@sudip4930 Жыл бұрын
✊✊😄
@azheruddin7156
@azheruddin7156 Жыл бұрын
Seriously harry i never ever given any likes or comments in any posts of facebook, instagram videos or any youtube videos but after seeing of your js playlist I have to give a like or Comment so thanks a lot harry recently i started my course with watching your videos only 👍.
@user-jh8sz2jm4q
@user-jh8sz2jm4q 9 ай бұрын
namaste harry Bhai !! Hum Nepal se hey...Apka Python series complete kar chuka aur JS ka bhi mast hey aab tak....Dil se bahut khusi lagta hey bhai apka videos dekh kar...Thank you sooo much brother from my bottom of heart !
@priyambhattacharya8060
@priyambhattacharya8060 Жыл бұрын
Really excited!!!! Can't wait to see the next video.......
@utpalnath4640
@utpalnath4640 11 ай бұрын
Definately . It is the best course on javascript even better than the paid ones. I am learning and enjoying your videos . I hope everyone will complete the series ....
@puneetshakya3001
@puneetshakya3001 Жыл бұрын
Hahahaha 😂 big boss mujhe hurt ho rha hai gazab Harry bhai 🔥❤️
@vivekmishra8831
@vivekmishra8831 7 ай бұрын
One of the best playlist I have seen for javascript. I have learnt javascript during my college placement but aftet that i got the job in a company where I have mostly worked on sql but currently I am looking for a front end role I know most of the concepts already but during interveiw they asked basics thats why watching your videos from last 2 days on 1.5x speed just to revise everyhting
@Mubashir7933
@Mubashir7933 Жыл бұрын
Haris bhai JazakALLAH i did it for first time JazakALLAH let bdc = prompt("enter your number") let abc = [1, 2, 4, 5, 6, 7, 8] let ddc = abc.push(bdc); console.log(abc)
@pandat2473
@pandat2473 Жыл бұрын
Extented version of question 5 in which no array is given before and only you have to enter a number, is here you can consider that as a reference: let a = Number.parseInt(prompt("Enter a Number:")); let arr = []; while(a!=0){ arr.push(a); a-- } const factorial = (x, y)=>{ return x * y; } let newArr = arr.reduce(factorial); console.log(newArr); 🙌
@mubeen1589
@mubeen1589 11 ай бұрын
//maybe a smaller version :) let n = Number.parseInt(prompt(`Enter the nth number to calculate its factorial : `)); let arr = []; for(let i=0 ; i ${arr}`) console.log(`Factorial of ${n} is ` + arr.reduce((a, b) => {return a * b}) + `!`)
@nishaathakurr
@nishaathakurr 9 ай бұрын
Can you tell me why the prompt is showing error in replit?@@mubeen1589
@shivamtiwari4293
@shivamtiwari4293 Жыл бұрын
Knowledgeable👍👍👍 Thanks for making this JavaScript course🙏🙏🙏
@SiddhantaPaul80
@SiddhantaPaul80 Жыл бұрын
Your Practice Sets Are Super Helpful! 👌🤩
@harshilthakkar9163
@harshilthakkar9163 Жыл бұрын
This practice set was amazing !!
@vloggersmedia671
@vloggersmedia671 Жыл бұрын
sir , really helpful this course for me . Thankyou sir 😍😍
@syedeliyaz1993
@syedeliyaz1993 Жыл бұрын
Harry bhai is something good 👍 thanks bhayya u r making lot of lives very easy with this course
@omkarkotoju
@omkarkotoju Жыл бұрын
let num = [3, 5, 6, 4, 7, 8, 9]; let a = prompt("enter a number"); a = Number.parseInt(a); //we can use both unshift and push methods to add numbers to an array num.push(a) || num.unshift(a); console.log(num);
@yasirabbasi8948
@yasirabbasi8948 Жыл бұрын
HarryBro doing great job this course really helpful.
@r_gmer5278
@r_gmer5278 Жыл бұрын
Code to find the factorial of any number let arr = [] let a; a = prompt("Enter the number "); a = Number(a); let x = a; if (a == 0) { ++a; arr.push(a); } do { arr.push(a); a--; } while (a > 0); let b = arr.reduce((p, q) => { return p * q; }) console.log("The Factorial of ", x, " is ", b); Thanku harry bhai or sir (:
@shabahathussain6405
@shabahathussain6405 Жыл бұрын
Really one of the best video series
@aravinddev8708
@aravinddev8708 Жыл бұрын
question-5 without reduce let pro=prompt("Enter A number"); pro=Number.parseInt(pro); let sum=1; for(i=pro;i>0;i--){ sum=sum*i; }; console.log(sum); what ever the number u want to give it will give the factorial of number that u have given.........--------by Aravind
@talharashid3194
@talharashid3194 Жыл бұрын
// Chap no 5 practice problem no 1; let arr = ['']; for (let i = 0; i < arr.length; i++) { if(i < 5) { let a = prompt('Enter Your Value'); a = Number.parseInt(a); arr.push(a); } else { if(i==5) { arr.shift(); console.log(arr); } } } Thank You Harry Bahi
@anindokhajuriachakrabarty3276
@anindokhajuriachakrabarty3276 Жыл бұрын
That's ok but why to use such a lengthy method when you can do it just with do while loop?
@gentlyroasting4049
@gentlyroasting4049 Жыл бұрын
HARRY SIR WHERE SHOULD WE DISCUSS ANY FURTHER MORE QUESTIONS? IT WOULD BE GREAT if there is a group for us🙏.THANK YOU FOR TODAY'S CLASS!!🔥🔥 #HarryBhai
@theimperfections56000
@theimperfections56000 Жыл бұрын
You are phenomenal 👏👏👏
@kanikajain2785
@kanikajain2785 Жыл бұрын
Big Fan! Mazza aa raha hai Javascript padne mein. Yahan tak pohonch gayi and want to do the full course. Just abhi notes print kiye hain and replit pe sign up kiya.
@pravinsingh7605
@pravinsingh7605 Жыл бұрын
Q5: let a =Number.parseInt(prompt("Enter a number to calculate factorial for : ")) let i = 1 let arr = [] while (i { return a*b }) console.log("The value of ",a," factorial is: ",value)
@abhijitpramanick3319
@abhijitpramanick3319 Жыл бұрын
What about when n = 0, will the program still run?
@meetjethva8399
@meetjethva8399 Жыл бұрын
vaah harry bhai maja araha he
@savindersingh4523
@savindersingh4523 Жыл бұрын
Eagerly waiting for Next Video!
@mrdeath4446
@mrdeath4446 Жыл бұрын
Keep with with the hard work Harry bro.. Love form Bangalore ☺️
@vickyrajwade8665
@vickyrajwade8665 Жыл бұрын
Ye ultimate course bahut hi interesting chal rahi hai... Thank you ❤ Aur mere gao ki jamin apke naap💯💯🔥🔥👌🏞🏞🏞🏞🏞
@priyanshubehera8085
@priyanshubehera8085 Жыл бұрын
Bro lots of love to you 😊😊... ye rhaa mera programs... PS qns ka jo ki mene apke solution dekhne se phle likha hye... Q1) let size=prompt("Enter the number of elements you want to add"); let arr=[ ]; while ((arr.length)!= (size)) { let i= prompt ("Enter the element"); arr.push(i); } console.log("Our array is:",arr) Q2) let size=prompt("Enter the number of elements you want to add"); let arr=[ ]; while ((arr.length)!= (size)) { let i= prompt ("Enter the element"); if (i == '0') { console.log('You entered zero so no more adding') break } arr.push(i); } console.log("Our array is:",arr) Q3) SAME AS YOURS :) Q4) SAME AS YOURS :) Q5)let size=prompt("Enter the number of elements you want to add"); let arr=[ ]; while ((arr.length)!= (size)) { let i= prompt ("Enter the number"); arr.push(i); } const factorial= arr.reduce ((d,f) => { return d*f} ) console.log("The factorial of the elements :", factorial )
@HamzaShahzadEB_
@HamzaShahzadEB_ 2 ай бұрын
I made the q5 a little tougher: If an array contains the 0 in it so simply print factorial is 1. Else get the 0 out of it and then use the reduce function to calculate factorial. ❤ It was fun doing it.
@mohammedmubeennalakath4333
@mohammedmubeennalakath4333 Жыл бұрын
your channel help a lot.
@royfamily9273
@royfamily9273 7 ай бұрын
Thanks Harry Bhaiya
@haryyOm6895
@haryyOm6895 Жыл бұрын
amze this tut help too much harry bhai
@Ccyt954
@Ccyt954 10 ай бұрын
very heartful ep i can say.
@user-sg6yq9ez6u
@user-sg6yq9ez6u Жыл бұрын
Q NO. 1 --> Extended version const arr=[]; let n=Number(prompt("How many numbers do you want to add in the array?")); for(i=0;i
@MuhammadAzeem-fk6ep
@MuhammadAzeem-fk6ep 7 ай бұрын
very nice
@arshiyanshaikh-code590
@arshiyanshaikh-code590 Жыл бұрын
done, thank you bhai.
@DipikaBhatt-gu2fw
@DipikaBhatt-gu2fw Жыл бұрын
Thank u sir u r great.
@user-yn8xw8dh7w
@user-yn8xw8dh7w 7 ай бұрын
Thank you so much .
@t4truth113
@t4truth113 Жыл бұрын
this course is so usefull thanks
@PeaceYourSoul
@PeaceYourSoul Жыл бұрын
Thanks Harry Bhai
@priyanshutyagi_02001
@priyanshutyagi_02001 5 ай бұрын
Thankyou harry bhai❤
@niketansinha8684
@niketansinha8684 Жыл бұрын
unstoppable javascript course
@SoumobrataChanda-tk7cz
@SoumobrataChanda-tk7cz Жыл бұрын
Because of this Ultimate JavaScript course and React js course playlist. I got my first JOB. @Kolkata.
@genztechman
@genztechman Жыл бұрын
Amazing tutorial
@prashantbhatia26
@prashantbhatia26 Жыл бұрын
2:24 Guys if you are using node js in vs code and you want to use prompt in vs code then write below line of code at starting of your program const prompt = require('prompt-sync')(); I hope this will help 🙂
@akashbheke7433
@akashbheke7433 Жыл бұрын
How do i install prompt-sync globally.For every new practice set folder I have to install prompt-sync.Any Solution please. And npm install -g prompt-sync doesnt work. The Problem remains
@prashantbhatia26
@prashantbhatia26 Жыл бұрын
@@akashbheke7433 kzfaq.info/get/bejne/rsVipryh0J2ZeZc.html i watched this video to run js in vs code . you should also check out
@paveenkua1949
@paveenkua1949 Жыл бұрын
Harry Bhai video jaldi jaldi dalo Bhai intezaar nhi ho rha ,aap itne acche se padhate ho ki man lg jata hain please video jaldi jaldi daalo
@ayush1344
@ayush1344 11 ай бұрын
harry bhai ka raaj ma coding maza ma
@hamza_Techy
@hamza_Techy Жыл бұрын
Great!❤❤
@abhinavshukla5628
@abhinavshukla5628 Жыл бұрын
aapne meme ka sahi upyog kiya hai harry bhai...padhe padhe hasne lagta hu to ghar wale bhi sochte hai ki beta coding sikhne ke chakkar mein pagla gaya hai.....great work
@techavvy
@techavvy Жыл бұрын
itna kyo padhte ho 😂😂
@amitranjeetjha1240
@amitranjeetjha1240 Жыл бұрын
This course is helpful
@rishabhupadhyay8165
@rishabhupadhyay8165 Жыл бұрын
Thankyou so much bhaiya......
@ececse
@ececse 6 ай бұрын
thankyou bhaiya
@anindokhajuriachakrabarty3276
@anindokhajuriachakrabarty3276 Жыл бұрын
Really happy that I was able to do all the questions by myself except 5 cuz I thought the question said to use filter lol
@RohanDasRD
@RohanDasRD Жыл бұрын
Amazing
@minhazulislam4682
@minhazulislam4682 Жыл бұрын
0:47 'koi nagar palya ko bulaooo....' love from bangladesh bro.
@fullstacky_tech
@fullstacky_tech Жыл бұрын
this is my first programming language harry pehle sir se utar rhi ab bhje m ghis rhi hai
@usamabaig8591
@usamabaig8591 2 күн бұрын
Sir Harry Great
@iamtheking95
@iamtheking95 Жыл бұрын
question5 best answer let arr =[] let a=prompt('enter a number whose factorial to be calculated') a=Number.parseInt(a) for(let i=0;i{ return a*b }) console.log(arr1)
@vision_lc
@vision_lc Жыл бұрын
prompt chalega vs code me pahle (npm install prompt-sync) is ko terminal me install kro phir {const prompt = require("prompt-sync")({ sigint: true });} - ye code ko har program ke top me rkho jab prompt use krna hai
@rehangull8499
@rehangull8499 Жыл бұрын
harry bahi love han ap i love you apna lis course ha programing asan lag rahi from pakistan
@hameedkhan31634
@hameedkhan31634 Жыл бұрын
#HaaryBhai is so amazing 😍😍 Jab memes ajate ha to course or b mazedaar ban jata ha esa lagta ha k Jese course ma jaan dal diya ho It was so funny " big boss mujhe hurt ho Raha hai " And also this line "As a certified copy, pester " 😂🤣🤣
@MuhammadAzeem-fk6ep
@MuhammadAzeem-fk6ep 7 ай бұрын
copy paster
@praneethsai9192
@praneethsai9192 Жыл бұрын
Blockchain related projects and videos
@mairajkhan4964
@mairajkhan4964 Жыл бұрын
Got it bro. 👍
@__iTs_Ravi
@__iTs_Ravi Жыл бұрын
Thank you
@COMBINEDENGINEERS-jy6ic
@COMBINEDENGINEERS-jy6ic Ай бұрын
Code to provide factorial of any given natural number let n = prompt ('Give a number for factorial') let array = [1] for (let i = 2; i{ return v1*v2 }) console.log (fac)
@rishabhupadhyay8165
@rishabhupadhyay8165 Жыл бұрын
Thankyou
@WajidRafique02
@WajidRafique02 5 ай бұрын
Thanks
@Sans_K5
@Sans_K5 Жыл бұрын
thanks_Sir💜
@rulebreaker4384
@rulebreaker4384 Жыл бұрын
Allhmdulliah done with lectr 21 .. love from pakistan
@_____praveen_______
@_____praveen_______ Жыл бұрын
thanks bhai
@ayushkumaryadav1557
@ayushkumaryadav1557 9 ай бұрын
Woww
@muhammadtahirkhan6014
@muhammadtahirkhan6014 10 ай бұрын
Start mein baba g ka thulu smaj aya. Mgr ab kafi bten smaj a rahi hen. Level up bro...👌
@supratiksarkar1195
@supratiksarkar1195 Жыл бұрын
if you are doing in node.js environment then user input code is - const a = require('readline').createInterface({ input: process.stdin, output: process.stdout }); let arr = []; function askQuestion(i) { if (i < 10) { a.question(`Enter your ${(i+1)}th number = `, num => { arr.push(num); askQuestion(i + 1); }); } else { a.close(); console.log(arr) } } askQuestion(0); /* If you add console.log(arr) after askQuestion(0), the array will not be printed because the question method of the readline interface is asynchronous. This means that the console.log(arr) line will be executed before all the questions have been asked and answered, and before the arr array has been fully populated. */
@k.vamshi6862
@k.vamshi6862 3 ай бұрын
love you bhai
@omsutar5498
@omsutar5498 Жыл бұрын
Course is helpful
@uttamkumarswarnakar4614
@uttamkumarswarnakar4614 Жыл бұрын
Please put your js repels inside a js folder. It would be easy to access
@AdnanKhan-yg4ng
@AdnanKhan-yg4ng Жыл бұрын
thank u
@durgeshanand6774
@durgeshanand6774 6 ай бұрын
6:22 Do while loop m ek problem h.. If the first input itself is 0 , do while will add it to the array then break the loop. So its better to use while loop or for loop.
@rajkeshri1748
@rajkeshri1748 4 ай бұрын
Question 2 , let arr = [2,3,4,5] let a; for(i=0;i
@alihamasghurki122
@alihamasghurki122 Жыл бұрын
You should use this instead of adding new variable to convert promot string into number let a = parseInt(prompt("Enter a Number : "));
@learnnow7093
@learnnow7093 11 ай бұрын
good
@nishaathakurr
@nishaathakurr 9 ай бұрын
Can you tell me why the prompt is showing error in replit?
@shoebkhan109
@shoebkhan109 Жыл бұрын
LOVE YOU HARRY BHAI FROM MAHARASHTRA 💜
@mdeditz21
@mdeditz21 Ай бұрын
Here is the summary and related questions: A summary of the video script: The video covers solving practice problems on arrays in JavaScript, including adding numbers to an array, filtering numbers divisible by 10, creating an array of squares, and calculating the factorial of numbers using the reduce method. Key moments: 00:00 The video focuses on practicing array manipulation in JavaScript through solving practice questions. The instructor demonstrates adding numbers to an array using .push method and implementing a while loop to keep adding numbers until 0 is encountered. -Demonstrating adding numbers to an array using .push method in JavaScript. The instructor prompts users for input and explains the process step by step. -Implementing a while loop to continuously add numbers to an array until 0 is entered. The instructor explains the concept and provides a practical example. 04:04 The video demonstrates coding examples using while loops, do while loops, and filter function in JavaScript, showcasing practical problem-solving and syntax understanding. -Exploring the use of while and do while loops for iterative tasks in JavaScript, highlighting syntax and practical application. -Utilizing the filter function in JavaScript to extract numbers divisible by 10 from an array, emphasizing the function's purpose and implementation. 08:01 The video demonstrates coding practices using JavaScript functions like map and reduce to manipulate arrays of numbers efficiently, showcasing practical problem-solving techniques. -Using map function to square numbers in an array efficiently. -Utilizing the reduce function to calculate the factorial of numbers in an array. Generated by sider.ai
@sahilanand30
@sahilanand30 Жыл бұрын
🔥
@sadanandsinghchauhan8811
@sadanandsinghchauhan8811 Жыл бұрын
op course 😍😍
@YogaXcelFitness
@YogaXcelFitness 9 ай бұрын
Hi @CodeWithHarry. instead of return h%10 == 0 i used while loop. Is it a good approach?
@hacker57
@hacker57 Жыл бұрын
Mja aa rha hee Harry bhai isse bich me MTT rokna plz🙏🙏🥺
@muhammadosama8556
@muhammadosama8556 Жыл бұрын
We can use let a =Number(prompt(""); to get number instead of string it is a short way
@myself_ripon
@myself_ripon Жыл бұрын
0:52 Ye Big Boss wala meme ZabarJust tha🤣👌 Pehli baar dekha aur Mazza Aya (Rahul Gandhi Edition) 🤓🤡
@Abhi-iw8kv
@Abhi-iw8kv Жыл бұрын
while loop sahi rehta...Do while toh atleast ek bar chalega....pehli entry agr 0 hai toh woh array mei add hogi hi hogi
@im_riyaj
@im_riyaj 8 ай бұрын
#HarryBhai apka bohot bohot sukriya guruji ❤
@mohdrayees8919
@mohdrayees8919 Жыл бұрын
Thank you so much harry sir❤️🙏
@Jaat_on_top__________
@Jaat_on_top__________ Жыл бұрын
reply here
@bhushanparadkar4149
@bhushanparadkar4149 Жыл бұрын
hi harry javascript to sahi chal raha hai iske baad typescript basss thanks in advance
Exercise 1 - Guess the Number | JavaScript Tutorial in Hindi #22
8:40
JavaScript in the Browser | JavaScript Tutorial in Hindi #23
10:14
CodeWithHarry
Рет қаралды 282 М.
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 85 МЛН
Универ. 13 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:07:11
Комедии 2023
Рет қаралды 6 МЛН
1❤️#thankyou #shorts
00:21
あみか部
Рет қаралды 88 МЛН
Map, Filter & Reduce in JavaScript | JavaScript Tutorial in Hindi #20
12:49
Future of AI ft. Indian Developer in USA @SinghInUSA
7:56
CodeWithHarry
Рет қаралды 134 М.
Microsoft Girl in the US talks about AI, DSA and life in the US 🔥
21:41
JavaScript alert, prompt & confirm | JavaScript Tutorial in Hindi #27
11:30
Array in Javascript | chai aur #javascript
18:55
Chai aur Code
Рет қаралды 161 М.
This is How Hackers Crack Passwords! (Don't Try)
8:27
CodeWithHarry
Рет қаралды 522 М.
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 85 МЛН