For Loops in JavaScript | JavaScript Tutorial in Hindi #9

  Рет қаралды 729,781

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 1 100
@CodeWithHarry
@CodeWithHarry 2 жыл бұрын
On your request, I have revamped the channel membership and added more levels. Click the join button to check out more - kzbin.info/door/eVMnSShP_Iviwkknt83cwwjoin
@muhammadzain9199
@muhammadzain9199 2 жыл бұрын
kindly also teach about nested loops ,functioning of nested loops, nested arrays and their functioning😀
@kiranpandya138
@kiranpandya138 2 жыл бұрын
@@muhammadzain9199 yes I also think of this.
@jaykishankashyap1837
@jaykishankashyap1837 2 жыл бұрын
// factorial to number//exercise 01:= /*let a=1; let n=prompt("enter the number") for(i=1;i
@prithammahato1915
@prithammahato1915 Жыл бұрын
enjoying . thank you
@shaneilahi9528
@shaneilahi9528 Жыл бұрын
for ( let a = 0; a
@abhinitashrivastava9100
@abhinitashrivastava9100 2 жыл бұрын
I am enjoying and learning well. I am a 52 years old lady but i like the way you teach. Thanks
@umarjanbhat3819
@umarjanbhat3819 2 жыл бұрын
Quite inspirational. Are you a programmer?
@creativevinay8317
@creativevinay8317 Жыл бұрын
Sounds cool ✨🌈
@mudi-c2g
@mudi-c2g Жыл бұрын
we need granny like u .their is u who is putting effort for mutual funds tally and web and their are old bitches in my society who do nothing than bitching and harrassing small souls.
@anmolgumbhir2037
@anmolgumbhir2037 Жыл бұрын
Mataji aashirwad dijiye ki mai acha programmer Banna paau ! 🙏🙏
@sukhenhalder4u
@sukhenhalder4u Жыл бұрын
For like purpose?
@creativemind5549
@creativemind5549 Жыл бұрын
Previous month I gave my Matric exams , now my holidays are there until college opens and meanwhile I have studied html, css, with your videos thanks a lot . you are a great teacher , and now I am learning js with your help and before going to college I'll try my best to become a perfect web developer ("with your help");.
@enzee5238
@enzee5238 Жыл бұрын
bro lekin me notes bhi likh raha hu aur videos bhi dekh raha hu ps bhi solve karta hu lekin practise kaise karu aur kitna ye batane keliye koi nhi he aur me js language sirf fun keliye sikh raha hu kyunki me jr college ka student hu
@ankitmehra98
@ankitmehra98 2 жыл бұрын
Best teacher in the world🙏🙏
@siddhantkumar6801
@siddhantkumar6801 2 жыл бұрын
Right bro
@sunnydevan8557
@sunnydevan8557 2 жыл бұрын
fac = 1 let n = prompt("The factorial of n") n = Number.parseInt(n) for(i=0; i
@devtomar8472
@devtomar8472 9 ай бұрын
😢😢Bhaiyon mere prompt wala koi bhee code repl me execute nahi ho raha hai, bar bar prompt undefined aa raha hai kaise solve hogi ye problem, agar kisi ko pata hai toh mujhe suggest kar do😢😢
@youtubelagent6338
@youtubelagent6338 6 ай бұрын
@@devtomar8472 same problem
@umarbutt7950
@umarbutt7950 5 ай бұрын
@@devtomar8472 node js allow nahi karta prompt browser k inspect section mai karlo try
@Tamim71111
@Tamim71111 Ай бұрын
​@@devtomar8472vs code pe karo
@shashankgoud6812
@shashankgoud6812 22 күн бұрын
i+1 will return wrong I guess. if 5 input hai toh it will start from 1 but end at 6. last 5 bhi +1 hoga which is wrong
@vishu3766
@vishu3766 2 жыл бұрын
//Factorial using loop let fact = 1; let n = prompt("Enter the value of n::"); n = Number.parseInt(n); if (n == 0 || n == 1) { console.log("Fact = ",n); } else { for(let i = 1; i
@sarimali3576
@sarimali3576 Жыл бұрын
bhai for loop ko use krty huwy ye program bnaoo btw this is also good.. here is my little effort,, let fact=1; let n=prompt("enter the value of n"); n=Number.parseInt(n); for (let i=0;i
@jagrutinikam1778
@jagrutinikam1778 Жыл бұрын
@@sarimali3576 thanks for this help your code helps me ,when i was in fond of fact. code.👍
@sarimali3576
@sarimali3576 Жыл бұрын
@@jagrutinikam1778 welcome brother
@syedmaheboob9203
@syedmaheboob9203 Ай бұрын
Good but 0 ka factorial 1 hai bhai uska liye ek aur else condition dalni hogi
@hrishabhkumar1954
@hrishabhkumar1954 2 жыл бұрын
I have high hopes from this course. I am highly determined to complete this course. Till now it's going smooth, just keep providing the notes bro.
@nirupambhandari9192
@nirupambhandari9192 Жыл бұрын
Hi kumar are u studying JS can we do group study
@outofspeedyt2589
@outofspeedyt2589 Жыл бұрын
@@nirupambhandari9192 I guess we can, Im a 13 year old btw
@atharvdevdairies
@atharvdevdairies Жыл бұрын
@@outofspeedyt2589 bro iam also interested
@atharvdevdairies
@atharvdevdairies Жыл бұрын
@@outofspeedyt2589 iam also 13 yo
@outofspeedyt2589
@outofspeedyt2589 Жыл бұрын
@@atharvdevdairies are you on instagram? if yes please share it to me
@sampannabhattarai6677
@sampannabhattarai6677 2 жыл бұрын
11:19 let n = prompt("write the number of which you wanna see the multiplication table of") for (let i = 1; i
@HamzaTaj-pt4my
@HamzaTaj-pt4my Жыл бұрын
let n = prompt("Write the number for which you want to see the multiplication table of"); n = parseInt(n); // Convert the input to an integer for (let i = 1; i
@CodeWithHarry
@CodeWithHarry Жыл бұрын
Code Backup Repository: github.com/CodeWithHarry/ultimate-js-course-youtube
@archminecraft1338
@archminecraft1338 Жыл бұрын
shiv hi kyu acha bacha nahi hai 13:00
@fareehaliaqat9627
@fareehaliaqat9627 Жыл бұрын
harry sir plz provide the notes i cant download it from your website
@ALLROUNDERSHORTBANDA
@ALLROUNDERSHORTBANDA 3 ай бұрын
let n= parseInt(prompt("enter a number ")); let fac; for (i=1;i
@ALLROUNDERSHORTBANDA
@ALLROUNDERSHORTBANDA 3 ай бұрын
// for in loop let obj = { subam :3, tupha :4, rabin :6, } for (let a in obj) { console.log(" the marks "+a+ "a re " + obj[a]) } // for of loop for (let b of "harry"){ console.log(b) }
@muhammadabdullahamir5843
@muhammadabdullahamir5843 2 жыл бұрын
for loop for getting squares of numbers: let square; number = prompt("What is your number") number = Number.parseInt(number) for(let i = 0;i
@officiall_nightmare6637
@officiall_nightmare6637 2 жыл бұрын
isme direct square = number *number bhi kr skte hai so that extra value nahi aayega console me. correct me if i am wrong i am a beginner🙏🏻
@firefistanime9815
@firefistanime9815 Жыл бұрын
let n = prompt("Enter a number!!"); let facto = 1; for (let i = 0; i < n; i++) { facto *= i + 1; } console.log(facto);
@keerioahmed4892
@keerioahmed4892 2 жыл бұрын
Just love the way he explains things with so much simplicity and humour!! Does not even feel like we are studying but having fun!
@mmsharmma6789
@mmsharmma6789 5 ай бұрын
let sum = 1; let n = prompt("Enter the value of n"); n = Number.parseInt(n); for (let i = 1; i < n; ++i) { sum *= i; // this is adding 0 + 1 + 2 +3 if number is 3 in prompt } console.log("factorial of " + n + " is " + sum);
@Shrey-n4c
@Shrey-n4c 5 ай бұрын
try my program buddy let prompt=require('prompt-sync')(); let n=prompt("enter the value of n"); n=Number.parseInt(n); let sum=1; for(i=n;i>0;i--) { sum*=(i) console.log(+sum) } console.log("factorial of" +n + "is" +sum)
@madhuryar.p5070
@madhuryar.p5070 2 жыл бұрын
Never seen a hardworking person like him
@im.vishalanand
@im.vishalanand 2 жыл бұрын
//factorial using for loop let fact = 1 let n = prompt("Enter the value of n: ") n = Number.parseInt(n) for (let i = 0; i< n; i++) { fact = fact * (i+1) } console.log("The fact of " +n+ " natural number is " +fact) console.log("Thanks a lot Harry bhaiya. Your videos are amazing.")
@SatveerSingh-ir1fi
@SatveerSingh-ir1fi Жыл бұрын
Also i = 1 , i
@kuldipsarvaiya6550
@kuldipsarvaiya6550 2 жыл бұрын
//chapter-3PS /- Question-3 while(1){ var a=prompt("enter value of a"); alert("try again"); if(a==0){ break; } } alert("game over")
@sidd_shaikh
@sidd_shaikh 2 жыл бұрын
The way you are teaching is really understandable Kul milakar thank you harry sir 👏
@alpanakushwaha9109
@alpanakushwaha9109 Жыл бұрын
for-of loop are used only for Arrays or Strings (that gives the value), not on object. For-in loop are used on objects that can be used to get primarily the 'keys' and then the 'values'😁
@faziel.sheikh
@faziel.sheikh Жыл бұрын
thankyou 🙃
@devtomar8472
@devtomar8472 9 ай бұрын
😢😢Bhaiyon mere prompt wala koi bhee code repl me execute nahi ho raha hai, bar bar prompt undefined aa raha hai kaise solve hogi ye problem, agar kisi ko pata hai toh mujhe suggest kar do😢😢
@mehatajbegumshaik7582
@mehatajbegumshaik7582 9 ай бұрын
add const prompt = require("prompt-sync")(); in starting of your code @@devtomar8472
@aniketpalwalia2331
@aniketpalwalia2331 9 ай бұрын
bhai console ma chala code ko jab tak koi solution na mila @@devtomar8472
@prasadnawale25
@prasadnawale25 2 жыл бұрын
console.log("hello world") let n = prompt("enter a number for 1 to n square ") for(let i = 1; i
@tonyconor681
@tonyconor681 Жыл бұрын
I am 65yrs old person ,I love the way you present everything so simple
@python12180
@python12180 5 ай бұрын
kyu fek rha hey?
@engineersubhanshu
@engineersubhanshu Жыл бұрын
let f = 1 let n = prompt("enter the n number") n = Number.parseInt(n) for(let i = 0; i < n; i++){ f *= (i+1) }
@sadhik_shaik2006
@sadhik_shaik2006 4 ай бұрын
//writing a program using for loop const prompt = require("prompt-sync")(); let name = prompt("enter your name "); let hmt = prompt("enter how many times you want to print your name "); hmt = parseInt(hmt); for(i=0;i
@Pritamgarai2003
@Pritamgarai2003 4 ай бұрын
Thank you bro...thank u so much . finally my prompt working 😢😢
@keshavmishra3023
@keshavmishra3023 3 ай бұрын
Thx dude now prompt is working!!!!
@abhishekkumarnigam1060
@abhishekkumarnigam1060 Жыл бұрын
let factorial =1 let n = prompt('give me a number') n = Number.parseInt(n)for (let i=0 ; i
@imabhinavs
@imabhinavs 8 ай бұрын
wrong answer, the correct one is: let n = parseInt(prompt("Enter the number :")); let fact = 1; for(let i = 1; i
@educationalxentertainmente9351
@educationalxentertainmente9351 2 жыл бұрын
The program that adds the first n Natural number can also be written as: let n = prompt("Enter the number") n = Number.parseInt(n) alert("the sum of first " + n + " natural numbers are " + n*(n+1)/2)
@SatyugHere
@SatyugHere 2 жыл бұрын
Bhai Kya output Aayega iska ?
@ADITYA-bd8mu
@ADITYA-bd8mu 2 жыл бұрын
@@SatyugHere first n natural number ko add kare ke output dega
@codedaily365
@codedaily365 2 жыл бұрын
lol good!
@umarjanbhat3819
@umarjanbhat3819 2 жыл бұрын
he was using for loop.. is mai use nai hoga... square aur cubes ka b daal do
@educationalxentertainmente9351
@educationalxentertainmente9351 2 жыл бұрын
@@umarjanbhat3819 there is no Square, Qube & rocket science applied! its a simple maths formula applied here
@amitnayak9866
@amitnayak9866 2 жыл бұрын
//Fact of a number let fact=1 let n = prompt("Enter the value of n") for(i=0;i
@sandeepsolanki193
@sandeepsolanki193 2 жыл бұрын
really it is amazing this is outstanding JavaScript course where we will learn too much new skills from the harry sir..
@AkashKumar-qm1hx
@AkashKumar-qm1hx Жыл бұрын
let multy = 1 let n = prompt("enter your natural number") n = Number.parseInt(n); for(let i=0; i
@TirthJoshi-qy8mv
@TirthJoshi-qy8mv 9 ай бұрын
Thanks bhai
@somok1000
@somok1000 Жыл бұрын
Loving the course so far.. so smooth and brilliant explanantion with each topic practically covered!
@Hitesh-g3s
@Hitesh-g3s Жыл бұрын
let pro=1 let n= prompt("Enter the value of n") n=Number.parseInt(n) for(let i=0 ;i < n ; i++) {pro*=(i+1)} console.log("The factorial of "+n+ " is "+pro)
@matrixcoderdev
@matrixcoderdev 2 жыл бұрын
This JavaScript Course is Life Changing
@devtomar8472
@devtomar8472 9 ай бұрын
😢😢Bhaiyon mere prompt wala koi bhee code repl me execute nahi ho raha hai, bar bar prompt undefined aa raha hai kaise solve hogi ye problem, agar kisi ko pata hai toh mujhe suggest kar do😢😢
@SaharshKhalokar
@SaharshKhalokar 7 ай бұрын
@@devtomar8472 mera bhi nahi chal rha
@masterbabymadhavverma4036
@masterbabymadhavverma4036 Жыл бұрын
let factorial = 1; let n = prompt("enter a number"); n = Number.parseInt(n); for(let i =0; i < n; i++){ factorial *= (i+1); } console.log("factorial of" + n + "is :" + factorial);
@aidynonwzm
@aidynonwzm Жыл бұрын
let number = prompt("Enter the number to find : ") let factorial = 1 number = Number.parseInt(number) for (let i = 1; i
@adityakamble7506
@adityakamble7506 2 жыл бұрын
Multiplication table using for loop: let n = 1 let num = prompt("enter your number") num = Number.parseInt(num) for (let n = 1; n < 11 ; n++){ console.log(num, "x", n , "=", num * n ) }
@sagarm17
@sagarm17 Жыл бұрын
Bhai error dega ye code
@adityakamble7506
@adityakamble7506 Жыл бұрын
@@sagarm17 Nhi bro...ye code 100% chalega
@sagarm17
@sagarm17 Жыл бұрын
@@adityakamble7506 I think let num = promt("enter your number") This is correct na?
@akashbhatiya8055
@akashbhatiya8055 Жыл бұрын
let n = prompt("Enter any number fro factorial output as n: ") let fact=1; for(let i=0;i
@sahiludanwala1689
@sahiludanwala1689 2 жыл бұрын
for sum of first n numbers: let num = 0 let n = prompt("enter the value of n") for(i=0 ; i
@agozthapz8670
@agozthapz8670 2 жыл бұрын
Factorial in loop: let fact = 1 let n = prompt("Enter the number:") n = Number.parseInt(n); for (let i = 1; i
@NoobCoder623
@NoobCoder623 2 жыл бұрын
why it's showing prompt is not defined when i do the same in vs code
@faisal7476
@faisal7476 2 жыл бұрын
@@NoobCoder623 prompt doesnt work in vs code even with node. try to execute inside a browser, then it will work. Hope this may help.
@NoobCoder623
@NoobCoder623 2 жыл бұрын
@@faisal7476 thanks mate
@GarhwaliTuber
@GarhwaliTuber 2 жыл бұрын
@@NoobCoder623 bro because your node.js is not installed firstly install that.
@NoobCoder623
@NoobCoder623 2 жыл бұрын
@@GarhwaliTuber it is already installed mate
@karanbhandari1534
@karanbhandari1534 Жыл бұрын
let fac = 1; let n = prompt("type a number here...") n = Number.parseInt(n); for(let i=0; i
@jayeshsinghania643
@jayeshsinghania643 Жыл бұрын
for (let i = 0; i < 100000000; i++) console.log(i); I wrote the above code and Repl took almost 7-8 minutes to execute it. It was fun
@ssun098
@ssun098 Жыл бұрын
low specs system.
@ranaasad5076
@ranaasad5076 Жыл бұрын
masti kr rayan hein shorya 😂😂
@BikramKumar-sv7pn
@BikramKumar-sv7pn 2 жыл бұрын
let fac =1 let n = prompt("Enter the value of n") n =Number.parseInt(n) for (let i=1; i
@shauryalavhekar4855
@shauryalavhekar4855 2 жыл бұрын
Sir am understanding the concepts easily and its fun doing the program..sir thank you for helping us. Love from maharashtra
@CHE10DIARY
@CHE10DIARY 2 жыл бұрын
let factoral = 0 let n = prompt("enter your number") n=Number.parseInt(n); for(i=1; i
@dhirajx
@dhirajx Жыл бұрын
amazing content. better than any paid courses out their!!!! hats off bro
@farzanna
@farzanna 2 жыл бұрын
looks like I will be a pro after watching all your videos, cannot Thank you enough. Tooo too Good.
@CoolBoy_Official
@CoolBoy_Official 2 жыл бұрын
Bhai This Course Is Insane! The Production Quality is Amazing And Aap Jab thora sa Mazak krte ho Video mein and memes add krte ho tau aur bhi maza ajata hai Keep it Up!
@ayanshah8799
@ayanshah8799 Жыл бұрын
sum = 0; let n=prompt("enter the number of factorze") n=Number.parseInt(n); for(let i=0; i
@jane_rosso
@jane_rosso 2 жыл бұрын
Thank you so much sir 💘 What an amazing course 💙🥰🌹
@shambhavirai2815
@shambhavirai2815 Жыл бұрын
I love the way you explain it. Speaks a lot about the command you have on the subject😃
@HukkaMaar
@HukkaMaar Жыл бұрын
example let mul = 1 let n=prompt('enter the value of n') n = Number.parseInt(n) for(let i=1; i
@KathBaatkasheer
@KathBaatkasheer 2 жыл бұрын
For Factorial task: let fact = 1 let n = prompt("Enter the value of n") n = Number.parseInt(n) for(let i = 1; i
@thekibouminecraft9361
@thekibouminecraft9361 Жыл бұрын
u can even do (i+1) it will give u the same result
@Love_14April
@Love_14April Жыл бұрын
// finding out factorial // let factorial=1; // let n = prompt("Please enter the value of which you would like to factorial") // n = Number.parseInt(n) // for(let i=1; i
@wah33dshah
@wah33dshah 2 жыл бұрын
Love and respect from Pakistan 🇵🇰😍😍
@AmitKumar-xx7zj
@AmitKumar-xx7zj Жыл бұрын
Harry bhai app bahut ache se complex cheeze bhi samjhate ho, Thank you so much Harry bhai
@vansh1190
@vansh1190 2 жыл бұрын
Day 9 #100DaysOfCode with CODEWITHHARRY, Javascript, for ,for of & for in loops in Javascript.
@darshankalamkhede4385
@darshankalamkhede4385 Жыл бұрын
//Factorial program multiple = 1 n = prompt("Enter your number for factorial") n = Number.parseInt(n) for (i = 0; i < n; i++) { multiple *= i + 1 } console.log(multiple)
@astroblemegaming6294
@astroblemegaming6294 2 жыл бұрын
Program to give factorial of n: n = prompt("Enter the Number") n = Number.parseInt(n) let factorial = 1; for(let a = 1; a
@prianshu_33
@prianshu_33 Жыл бұрын
thanks bro I was doing factoral = 0 instead 1, then i relized if i use 0 and then multiply, the answer will be 0 . Thanks again
@ankuofficial
@ankuofficial 2 жыл бұрын
// factorial in JS let fact = 1 let n = prompt("Enter the value of n") n = Number.parseInt(n) for(let i=0; i
@saifuddinnajmuddin4719
@saifuddinnajmuddin4719 2 жыл бұрын
Respected Sir, I saw your old angry moments of harry. I just want to say to you that you inspire me a lot. I have learned programming from your channel and you make commendable videos and just like this, make different videos and your course has helped me a lot, I cannot thank you enough and just always bring such amazing video for us. Hope negative comments do not matter to you :)
@CoolBoy_Official
@CoolBoy_Official 2 жыл бұрын
Yes We Support Your Hard Work #HarryBhai Keep Making These Incredible Videos and Courses
@hubdum6033
@hubdum6033 Жыл бұрын
let fact = 1; let n = prompt("enter the number whose factorial is to be calculated"); n = number.parseInt(n); for( let i =1 ; i
@yellayiaruna6170
@yellayiaruna6170 2 жыл бұрын
Hi Harry, Can you please explain patterns (ex: Square, Right triangle, Right Triangle (reverse etc.))
@Ahtesham731
@Ahtesham731 Жыл бұрын
Interview question
@nonstopnj
@nonstopnj Жыл бұрын
Instead of i < n you can write i
@wealth_wheel_
@wealth_wheel_ 2 жыл бұрын
Practice Quiz- Its a program for getting the table of the number you will provide let m = 0; let n = prompt('Enter your number'); n = Number(parseInt(n)); for(let i = 1; i
@athuislive4917
@athuislive4917 2 жыл бұрын
great job bro
@umarjanbhat3819
@umarjanbhat3819 2 жыл бұрын
@@adityapanchal534 what is this logic? 🤔🤔🤔🤔🤔🤔🤔
@umarjanbhat3819
@umarjanbhat3819 2 жыл бұрын
console.log(n, '*', i, '=', n*i) should work as well without using m.
@adityapanchal534
@adityapanchal534 2 жыл бұрын
@@umarjanbhat3819 oops sorry, i written wrong logic, i will write right logic after some time
@mohammadalfazafan6665
@mohammadalfazafan6665 Жыл бұрын
@@umarjanbhat3819 i isnt defined since let only works under the blocks
@shivanandsingh1234
@shivanandsingh1234 2 жыл бұрын
i also have high hopes from this tutorial ,please clearfying everything and teach as we are just a nursery kids
@stutyapatwal
@stutyapatwal 2 жыл бұрын
Best coder in the world is here
@Official-fruity110
@Official-fruity110 3 ай бұрын
const prompt = require("prompt-sync")(); let sum = 0 let a = prompt("Enter the value of n") a = Number.parseInt(a); for(i=0 ; i
@sameerrana6356
@sameerrana6356 2 жыл бұрын
Amazing videos you're making, keep up the good work!
@nitintyagi1451
@nitintyagi1451 Жыл бұрын
let mul = 1; let n = prompt("enter value of n"); n=Number.parseInt(n); for(let i = 0;i
@Blessedgamer01
@Blessedgamer01 2 жыл бұрын
Thank you Bhai, I have a few questions, but I think I will try find it myself. Thank you for your tutorial videos. Can I learn full advanced python, in 1month?
@dhruvsingh2949
@dhruvsingh2949 Жыл бұрын
yess
@mrsatyavishwakarma4309
@mrsatyavishwakarma4309 2 жыл бұрын
Apke padhane se sir easy ho jata hai padhna❤❤
@saptarshikar7907
@saptarshikar7907 2 жыл бұрын
For each loop???
@aneesshaikh2200
@aneesshaikh2200 4 ай бұрын
In php not in java
@subhamdhar8203
@subhamdhar8203 2 жыл бұрын
// Ex-3 //finding factorial of first 5 natural number // let factorial = 1; // let n = prompt('Enter the value of n'); // n = Number.parseInt(n); // for (let i = 0; i < n; i++) { // factorial *= (i+1); // console.log((i + 1), '*') // } // console.log('The factorial of first ', n, ' natural number is ', factorial);
@indeedvaloaddict
@indeedvaloaddict 2 жыл бұрын
let sum = 0; let n = prompt("what is the value of n?"); n = Number.parseInt(n); for(let i =0; i < n; i++) { sum+= i+1; } console.log("sum of " + n + " natural number" ,"is " + sum);
@AmirKhan-wm8jo
@AmirKhan-wm8jo 2 жыл бұрын
Lovvee uuhhh tooo bahut saara harry bhai ko.... 🎊🎊🪄🪄 bahut support hai aapka hum beginners ko 🙏🏻🙏🏻 dil se shukriya 🎊🎊🪄🪄❤️❤️
@suravihara396
@suravihara396 Жыл бұрын
let fac=1; let n = prompt("Enter a number"); n = Number.parseInt(n); for(let i=0;i
@sufiyanmogal1527
@sufiyanmogal1527 Жыл бұрын
// Program to calulate factorial of n /* let n = prompt("Enter the value of n"); n = Number.parseInt(n); let fact = 1; for(let i=0;i
@arjunmalpaniff
@arjunmalpaniff 8 ай бұрын
factorial program let factorial = 1 let n = prompt("Enter the value of 'n'") n = Number.parseInt(n) for (i=0 ; i
@silicon8065
@silicon8065 Жыл бұрын
Q. Program to add factorial numbers? let sum=1 let n = prompt("Enter number"); n = Number.parseInt(n) for(let i=1; i
@vinayakkp201
@vinayakkp201 Жыл бұрын
best video . i have made my first successful factorial program after watching this
@gtpt4897
@gtpt4897 2 жыл бұрын
11:00 This can be written in simple way like this: let Num = prompt("Enter the number: "); Num = Number.parseInt(Num); let Nnum = 0 for(let i = 0; i < Num; i++){ console.log(i) Nnum = Nnum + i } console.log(" ") console.log("Natural numbers") console.log(Nnum)
@shyy3607
@shyy3607 2 жыл бұрын
Nhi chalega bhai chla kr dek le....sum of n number aana chiye....sum glt ayega ismae
@RAJSINGH-hn8yq
@RAJSINGH-hn8yq 2 жыл бұрын
there is only one mistake with your code and that is " i
@technoworld7609
@technoworld7609 2 жыл бұрын
You are best teacher for every programm in KZbin harry bhai
@Sandeepsingh-io1tt
@Sandeepsingh-io1tt 2 жыл бұрын
Bhai thanks apki video dekh kr muje bhi IT field me jana ka dil kr rha hai
@sunilkulkarni5118
@sunilkulkarni5118 Жыл бұрын
let fact=1; let n = prompt("enter the value of n"); n=Number.parseInt(n); for(i=1;i
@Wajeehasaleem26
@Wajeehasaleem26 Жыл бұрын
what a great way of teaching. simply love💌
@aaiiosshbaj3907
@aaiiosshbaj3907 5 ай бұрын
11:13 To find even numbers upto given number prompt = require('prompt-sync')(); const ev = 0 let n = prompt("Enter a number upto which you want to see even numbers: ") n = Number.parseInt(n) for (let u = n; u 1; u--){ if (u % 2 == 0){ console.log(u) } }
@sumidey9538
@sumidey9538 2 жыл бұрын
let mul = 1; let n = prompt('The number is n'); n = Number.parseInt(n); for(i=0;i
@techpediahub
@techpediahub Жыл бұрын
amazing course ever thanks harry bhai bohot maza a rha hai javascript sikhnay main.
@DiyaDave-l6v
@DiyaDave-l6v 2 ай бұрын
thanks a lot for these video i am 14 years old i am learning coding and your videos are to helpful for me thanks again sir
@maxhydraulicfun6728
@maxhydraulicfun6728 Жыл бұрын
11:58 quick quiz no#1 let factorial = 1 let num = prompt("Enter a number ") for(let i = 1 ;i
@RudyGaming-v2h
@RudyGaming-v2h Жыл бұрын
for getting factorial of first n natural number entered by the user ..... let mul = 1; let m = prompt("Enter the value of m"); m = Number.parseInt(m); for(let i=1; i
@onfire166
@onfire166 2 жыл бұрын
Sir you are the best but you could use for(let i=0 ; i
@manemanoj3068
@manemanoj3068 2 жыл бұрын
Maza aa gaya Harry bhai..
@hafsasheikh878
@hafsasheikh878 2 ай бұрын
JAZAK ALLAH for enjoyable explanation harry
@Skumar43-l7c
@Skumar43-l7c Жыл бұрын
//sum and product of n natural number //for loop const prompt = require("prompt-sync")(); let num=prompt("enter number to find sum of n natural number"); let sum=0; let fact=1; num=Number.parseInt(num); console.log("sum and product of n natural number is "); for(let i = 0; i
@surajsinghaniya7960
@surajsinghaniya7960 Жыл бұрын
let n = prompt('Please enter an integer'); let factorial = 1; for (i =factorial; i
@raosaran1025
@raosaran1025 Жыл бұрын
I am really enjoying ur every video best mentor ever
@MuhammadAhmad-x5p7y
@MuhammadAhmad-x5p7y Жыл бұрын
to find the cube root of any number let cube; let num = prompt("Write the number to find cube root") for (let l = 1; l < num; l++) { cube = l ** 3 console.log(cube) }
@munemshahriarhemel258
@munemshahriarhemel258 2 жыл бұрын
let fac=1;let n = prompt("Enter a number to calculat the factorial");for(let i=1;i
@glidethegoal53
@glidethegoal53 2 ай бұрын
let a = 6; for (i = 0; i < a; ++i){ let b = a + i console.log(b + a + i) } /* Print 2 Numbers After 2 Numbers */
@bhavanalavhale2982
@bhavanalavhale2982 10 ай бұрын
Fact=1; Let n=prompt ("enter any number) ; n=Number.parseInt(n) ; For(let I=0;I
@wasimraza6175
@wasimraza6175 Жыл бұрын
let name = "wasim" for(i=0;i
@manabkhan6902
@manabkhan6902 Жыл бұрын
let sum=0 let a=prompt("enter number") for(let i=0;i
While Loops in JavaScript | JavaScript Tutorial in Hindi #10
11:08
CodeWithHarry
Рет қаралды 443 М.
Functions in JavaScript | JavaScript Tutorial in Hindi #11
13:49
CodeWithHarry
Рет қаралды 643 М.
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 24 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 30 МЛН
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 1,5 МЛН
My MEAN sister annoys me! 😡 Use this gadget #hack
00:24
For loop with break and continue in javascript | chai aur #javascript
24:31
JavaScript Loops
6:49
Programming with Mosh
Рет қаралды 429 М.
Map, Filter & Reduce in JavaScript | JavaScript Tutorial in Hindi #20
12:49
JavaScript Operators and Expressions | JavaScript Tutorial in Hindi #6
23:26
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 486 М.
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 24 МЛН