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

  Рет қаралды 281,006

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 478
@CodeWithHarry
@CodeWithHarry 2 жыл бұрын
Handwritten Notes access karein and apne gao ki zameen mere naam karein 🤣😅 Here is the playlist: kzbin.info/aero/PLu0W_9lII9ahR1blWXxgSlL4y9iQBnLpR
@syedaanam9811
@syedaanam9811 2 жыл бұрын
🤣🤣
@arvajkhan683
@arvajkhan683 2 жыл бұрын
Harry brother typescript or javascript dono last tak dalna
@dramaworld3213
@dramaworld3213 2 жыл бұрын
Hahaha kr diii
@shurime693
@shurime693 2 жыл бұрын
Bhai thank you so much 😍 Cz apka video bohot helpfull hain.
@shreyas.sihasane
@shreyas.sihasane 2 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Can you explain more about it? How to actually use it?
@badalbanjare3822
@badalbanjare3822 Жыл бұрын
Thanx Bro
@hariomsingh18156
@hariomsingh18156 11 ай бұрын
bhai thanku tu bhagwan solution nhi mil rha tha thanks bhai once again
@animeshanandcool
@animeshanandcool 10 ай бұрын
thnx it worked
@sawerasajid4309
@sawerasajid4309 10 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
P
@pluxjimina9565
@pluxjimina9565 3 ай бұрын
​​​@@IamHamzaGujjar yeah same question and I think it's because hme naya array create krna hai and for each performs the operation on the same array's elements..it doesn't create a new array while map() does that's my understanding but I don't know for sure if I'm right
@AbhishekThakur-we5ub
@AbhishekThakur-we5ub 5 ай бұрын
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
@akhilesh123lokhande
@akhilesh123lokhande Ай бұрын
just make a small change in your code, you are taking neNumber as string so const prompt = require("prompt-sync")() 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 newNumber = Number.parseInt(newNumber); //converting string to number arr.push(newNumber) console.log(arr); }
@soumyajitsatpathy3627
@soumyajitsatpathy3627 2 жыл бұрын
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 👏
@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)
@puneetshakya3001
@puneetshakya3001 2 жыл бұрын
Hahahaha 😂 big boss mujhe hurt ho rha hai gazab Harry bhai 🔥❤️
@abhijeet1611
@abhijeet1611 3 ай бұрын
😂
@aayushlamsal-i8e
@aayushlamsal-i8e Жыл бұрын
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 !
@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 Жыл бұрын
This one is more accurate
@shydcuk
@shydcuk Жыл бұрын
@@maddyshorts267 Thanks bro
@sanaalam_
@sanaalam_ Жыл бұрын
Thank youuuu
@shydcuk
@shydcuk Жыл бұрын
@@sanaalam_ Glad it helped you
@vivekmishra8831
@vivekmishra8831 11 ай бұрын
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
@CodeWithHarry
@CodeWithHarry Жыл бұрын
Code Backup Repository: github.com/CodeWithHarry/ultimate-js-course-youtube
@utpalnath4640
@utpalnath4640 Жыл бұрын
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 ....
@muneebkarim3738
@muneebkarim3738 2 жыл бұрын
Bhai sab batain alag Par Thumbnail Man Bht cute Lagta ho ❤️❤️❤️💜
@jaiswalji1507
@jaiswalji1507 2 жыл бұрын
😜
@rishiraj2548
@rishiraj2548 2 жыл бұрын
😍👍
@rishiraj2548
@rishiraj2548 2 жыл бұрын
Bahut hossiyaar Jaisi
@flyhigh7250
@flyhigh7250 Жыл бұрын
😂saala gay
@sudip4930
@sudip4930 Жыл бұрын
✊✊😄
@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 (:
@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
@omkarkotoju
@omkarkotoju 2 жыл бұрын
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);
@praneethsai9192
@praneethsai9192 2 жыл бұрын
Blockchain related projects and videos
@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 Жыл бұрын
//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 Жыл бұрын
Can you tell me why the prompt is showing error in replit?@@mubeen1589
@SinmbfLost
@SinmbfLost Жыл бұрын
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 11 ай бұрын
very nice
@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?
@abhinavshukla5628
@abhinavshukla5628 2 жыл бұрын
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 2 жыл бұрын
itna kyo padhte ho 😂😂
@priyanshubehera8085
@priyanshubehera8085 2 жыл бұрын
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 )
@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
@lolabcd1234
@lolabcd1234 Жыл бұрын
That's ok but why to use such a lengthy method when you can do it just with do while loop?
@priyambhattacharya8060
@priyambhattacharya8060 2 жыл бұрын
Really excited!!!! Can't wait to see the next video.......
@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.
@paveenkua1949
@paveenkua1949 2 жыл бұрын
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
@SiddhantaPaul80
@SiddhantaPaul80 2 жыл бұрын
Your Practice Sets Are Super Helpful! 👌🤩
@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 👍.
@SoumobrataChanda-tk7cz
@SoumobrataChanda-tk7cz Жыл бұрын
Because of this Ultimate JavaScript course and React js course playlist. I got my first JOB. @Kolkata.
@HamzaShahzadEB_
@HamzaShahzadEB_ 6 ай бұрын
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.
@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)
@COMBINEDENGINEERS-jy6ic
@COMBINEDENGINEERS-jy6ic 5 ай бұрын
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)
@vickyrajwade8665
@vickyrajwade8665 2 жыл бұрын
Ye ultimate course bahut hi interesting chal rahi hai... Thank you ❤ Aur mere gao ki jamin apke naap💯💯🔥🔥👌🏞🏞🏞🏞🏞
@rajkeshri1748
@rajkeshri1748 8 ай бұрын
Question 2 , let arr = [2,3,4,5] let a; for(i=0;i
@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
@razarajput5712
@razarajput5712 2 ай бұрын
Problem 3 : let arr = [25 , 60 , 27 , 8 , 110 , 20 , 77 , 40]; let NewArr = arr.filter((a) => { return a % 10 == 0 }) console.log(NewArr)
@minhazulislam4682
@minhazulislam4682 2 жыл бұрын
0:47 'koi nagar palya ko bulaooo....' love from bangladesh 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. */
@Abhi-iw8kv
@Abhi-iw8kv 2 жыл бұрын
while loop sahi rehta...Do while toh atleast ek bar chalega....pehli entry agr 0 hai toh woh array mei add hogi hi hogi
@durgeshanand6774
@durgeshanand6774 10 ай бұрын
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.
@subirthecoder
@subirthecoder Ай бұрын
For those who are viewing today and understood Harry's last tutorial Use reduce method, to find factorial of each elements in an array
@shabahathussain6405
@shabahathussain6405 2 жыл бұрын
Really one of the best video series
@Avineshlodhi
@Avineshlodhi 2 жыл бұрын
sir , really helpful this course for me . Thankyou sir 😍😍
@uttam0301
@uttam0301 Жыл бұрын
Please put your js repels inside a js folder. It would be easy to access
@gentlyroasting4049
@gentlyroasting4049 2 жыл бұрын
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
@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 11 ай бұрын
copy paster
@jeremiahranen
@jeremiahranen 10 ай бұрын
You can use the below code to use prompt in vs code : const prompt = require("prompt-sync")() let a = prompt("Enter a number") This will work ...
@ayush1344
@ayush1344 Жыл бұрын
harry bhai ka raaj ma coding maza ma
@HimanshuSharma-jw2qm
@HimanshuSharma-jw2qm 11 ай бұрын
question -5 const prompt = require("prompt-sync")() let a = prompt("Enter a factorial number : "); a = Number.parseInt(a); let b = []; for (let i =1 ;i < a+1; i++) { b.push(i); } console.log(b); let c = b.reduce((e1,e2)=> { return e1*e2; }) console.log(c);
@muhammadtahirkhan6014
@muhammadtahirkhan6014 Жыл бұрын
Start mein baba g ka thulu smaj aya. Mgr ab kafi bten smaj a rahi hen. Level up bro...👌
@savindersingh4523
@savindersingh4523 2 жыл бұрын
Eagerly waiting for Next Video!
@rehangull8499
@rehangull8499 Жыл бұрын
harry bahi love han ap i love you apna lis course ha programing asan lag rahi from pakistan
@niketansinha8684
@niketansinha8684 Жыл бұрын
unstoppable javascript course
@priyankarkoley
@priyankarkoley 2 жыл бұрын
HARRY VAAI.... TYPE-SCRIPT KA BHI EK COURSE BANA DO... plzzz🔥 BTW.. BIG FAN❤️
@mr.innovation2693
@mr.innovation2693 Жыл бұрын
//square of each element let arr=[1,2,3,4,5,6,7,8,9,10] let crc=arr.forEach((element)=>{ console.log(element*element) }) console.log(crc)
@YawmalQiyamah
@YawmalQiyamah 2 жыл бұрын
this is my first programming language harry pehle sir se utar rhi ab bhje m ghis rhi hai
@mohammedmubeennalakath4333
@mohammedmubeennalakath4333 2 жыл бұрын
your channel help a lot.
@sia...3965
@sia...3965 Жыл бұрын
Question 4. Can also be done like this:- let num = {"1"+"2"+"3"+"4"+"5"} num.forEach((element) =>{console.log(element*element)})
@rulebreaker4384
@rulebreaker4384 2 жыл бұрын
Allhmdulliah done with lectr 21 .. love from pakistan
@UVESHSANDSTONEWORKS
@UVESHSANDSTONEWORKS 11 ай бұрын
// Ans 1 - in 3 way let arr=[1,43,22,4,56,12] let num=Number(prompt("Entre the number =")) // add valu in last arr.push(num) document.write(arr) // add value in starting of Array arr.unshift(num) document.write(arr) // add value on 2 arr.splice(2,0,num) document.write(arr) //#shohev
@abhijitpramanick3319
@abhijitpramanick3319 Жыл бұрын
9:12 let n = prompt("Enter a number "); n = Number.parseInt(n); let arr = [1,1]; while(n){ arr.push(n--); } let fact = arr.reduce((h1,h2)=>{ return h1*h2; }) console.log(fact);
@shaileshhacker
@shaileshhacker 2 жыл бұрын
10:46 I think Harry bhai next video me Guess the Number wali exercise karayenge.... Date and Time: 15-08-2022 12:57AM (midnight)
@randomavghuman
@randomavghuman Жыл бұрын
factorial of n natural numbers const array = [ ] let n = prompt("enter a number ") n=Number.parseInt(n) for(i=1;i { return num1*num2 }) console.log(factorial)
@royfamily9273
@royfamily9273 11 ай бұрын
Thanks Harry Bhaiya
@souvikbanerjee7781
@souvikbanerjee7781 Сағат бұрын
Nicely explained
@meetjethva8399
@meetjethva8399 Жыл бұрын
vaah harry bhai maja araha he
@dhananjayvaish3276
@dhananjayvaish3276 Жыл бұрын
At 06:20 , in ques 2 , you have used do while loop , which will run atleast once , but what if agar user ne pehli hi baar me 0 type kiya prompt me tab bhi 0 push ho jaega array me jo ki nahi hona chahiye as per ques . Please correct me if i am wrong . so better to use while loop here i think
@zohaib0335
@zohaib0335 Жыл бұрын
It is really a small question as compared to more advanced algorithm problems out there. as long as the loop terminates upon the user inputting 0, and it adds any numbrer the is not 0 to the loop, then you have got the problem solved, it doen't matter whether it gets added to the Array or not, as it wasn't mentioned in the Question Problem.
@vigilanteer
@vigilanteer Жыл бұрын
Do While ap ne is liye use krna he kyo ke ap chahte he ke user kam az kam aik dafa value enter kre. jabke while loop me aisa nahi ho skta (without advanced logic)
@shoebkhan109
@shoebkhan109 2 жыл бұрын
LOVE YOU HARRY BHAI FROM MAHARASHTRA 💜
@prashantbhatia26
@prashantbhatia26 2 жыл бұрын
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 2 жыл бұрын
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 2 жыл бұрын
@@akashbheke7433 kzbin.info/www/bejne/rpCVpIymoJxof8U i watched this video to run js in vs code . you should also check out
@chiragshrivastava1530
@chiragshrivastava1530 7 ай бұрын
9:07 4th question mein forEach loop use krke bhi toh kr skte hain
@vishk9765
@vishk9765 2 жыл бұрын
Please continue js course in Programmingwithharry channel
@im_riyaj
@im_riyaj Жыл бұрын
#HarryBhai apka bohot bohot sukriya guruji ❤
@muhammadosama8556
@muhammadosama8556 2 жыл бұрын
We can use let a =Number(prompt(""); to get number instead of string it is a short way
@myself_ripon
@myself_ripon 2 жыл бұрын
0:52 Ye Big Boss wala meme ZabarJust tha🤣👌 Pehli baar dekha aur Mazza Aya (Rahul Gandhi Edition) 🤓🤡
@mridulghoshshanto5472
@mridulghoshshanto5472 2 жыл бұрын
// 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 2 жыл бұрын
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 6 ай бұрын
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.?
@printsks8649
@printsks8649 2 жыл бұрын
Harry Bhai Pls Make a Tutorial of Lua as there is not any proper tutorial of Lua in Hindi !! A lot people will also agree on this fact !
@usamabaig8591
@usamabaig8591 3 ай бұрын
Sir Harry Great
@sambedansahooridul1237
@sambedansahooridul1237 Жыл бұрын
As a cirtifier copy paster..you are doing a great job harry Bhai .....😂😂😂😂😂😂8:28
@SayanMondal-t5n
@SayanMondal-t5n 11 ай бұрын
Thank you so much .
@syedeliyaz1993
@syedeliyaz1993 2 жыл бұрын
Harry bhai is something good 👍 thanks bhayya u r making lot of lives very easy with this course
@vivelafootball4835
@vivelafootball4835 Жыл бұрын
//Q5 const prompt=require('prompt-sync')(); let n=Number.parseInt(prompt("Enter the number whose factorial you need : ")); arr=[]; for(let i=1;i{ return x1*x2; }); console.log(fact);
@kjhi89568
@kjhi89568 2 жыл бұрын
4:58 This time i got scared ,lol sound could be a little bit lower otherwise everything is fine ... course is also going super ..thanks for making this course.
@Haider00754
@Haider00754 2 жыл бұрын
haa yr baar baar up down krna padta hai sound kabhi tez bolte hai harry bhai kabhi dheeme to kabhi ekdm loud meme bajne lagta hai bich bich me and last me outro ki awaz bhi tez hai bahot raat me padhte hai sb disturb hota hai
@umarjanbhat3819
@umarjanbhat3819 2 жыл бұрын
yes
@maddyshorts267
@maddyshorts267 Жыл бұрын
Example 3: let number = [17,18,19] let newnum= prompt("Enter a new number to add in array") newnum= Number.parseInt(newnum); while(newnum!=0){ number.push(newnum); newnum = prompt("Enter a new number to add in array"); newnum= Number.parseInt(newnum); } console.log(number)
@sujal_thakkar
@sujal_thakkar Жыл бұрын
very heartful ep i can say.
@abhishekanand5146
@abhishekanand5146 2 жыл бұрын
Bhaiya kuch beginning ke liye
@sounaksaha1455
@sounaksaha1455 2 жыл бұрын
SOMETHING BIGGGGG IS COMING!!!! CAN'T WAIT FOR THE NEXT VIDEO.
@naimshk5162
@naimshk5162 2 жыл бұрын
?
@Marvel_studio16
@Marvel_studio16 2 жыл бұрын
Sir mai bahut YAKKA kr rha hu apki video dekh ke 🙂🙂
@t4truth113
@t4truth113 2 жыл бұрын
this course is so usefull thanks
@shivamtiwari4293
@shivamtiwari4293 2 жыл бұрын
Knowledgeable👍👍👍 Thanks for making this JavaScript course🙏🙏🙏
@yasirabbasi8948
@yasirabbasi8948 2 жыл бұрын
HarryBro doing great job this course really helpful.
@DipikaBhatt-gu2fw
@DipikaBhatt-gu2fw Жыл бұрын
Thank u sir u r great.
@genztechman
@genztechman Жыл бұрын
Amazing tutorial
@hacker57
@hacker57 2 жыл бұрын
Mja aa rha hee Harry bhai isse bich me MTT rokna plz🙏🙏🥺
@Lv_La_Lr
@Lv_La_Lr 21 күн бұрын
Harry Sensei OP❤❤
@priyanshutyagi_02001
@priyanshutyagi_02001 9 ай бұрын
Thankyou harry bhai❤
@haryyOm6895
@haryyOm6895 2 жыл бұрын
amze this tut help too much harry bhai
@bhoomikabhatia2515
@bhoomikabhatia2515 9 ай бұрын
just type: const prompt = require("prompt-sync")(); if prompt is not working :)
@amitranjeetjha1240
@amitranjeetjha1240 2 жыл бұрын
This course is helpful
@mr.innovation2693
@mr.innovation2693 Жыл бұрын
//question 1 answere let arr=[1,2,3,45,6,7] let a=prompt("enter number to add"); a=Number.parseInt(a) let ctc=arr.push(a) console.log(arr)
@bepositiveberelax2589
@bepositiveberelax2589 2 жыл бұрын
Harry bhai Frontend ky liye next js seekh hy lia backend ky lia knsa framework best hy for full stack js
Exercise 1 - Guess the Number | JavaScript Tutorial in Hindi #22
8:40
Map, Filter & Reduce in JavaScript | JavaScript Tutorial in Hindi #20
12:49
SISTER EXPOSED MY MAGIC @Whoispelagheya
00:45
MasomkaMagic
Рет қаралды 12 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 1,7 МЛН
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 340 М.
JavaScript in the Browser | JavaScript Tutorial in Hindi #23
10:14
CodeWithHarry
Рет қаралды 307 М.
Some More JavaScript Array Methods | JavaScript Tutorial in Hindi #18
17:04
Introduction to Arrays | JavaScript Tutorial in Hindi #16
10:19
CodeWithHarry
Рет қаралды 430 М.
JavaScript Operators and Expressions | JavaScript Tutorial in Hindi #6
23:26
JavaScript String Methods | JavaScript Tutorial in Hindi #14
17:38
CodeWithHarry
Рет қаралды 414 М.
How I Mastered Data Structures and Algorithms
10:45
Ashish Pratap Singh
Рет қаралды 216 М.
JavaScript Array Methods | JavaScript Tutorial in Hindi #17
10:02
CodeWithHarry
Рет қаралды 408 М.
Introduction to Strings | JavaScript Tutorial in Hindi #13
13:44
CodeWithHarry
Рет қаралды 436 М.