(Project 7) JavaScript Tutorial in Hindi for Beginners [Part 77] - Create Stopwatch in JavaScript

  Рет қаралды 62,017

Tech Gun

Tech Gun

Күн бұрын

Пікірлер: 169
@CodeParagon
@CodeParagon 4 ай бұрын
I litrally view your video first time bhaiya The way you are teaching is amazing i will complete and start the journey of javascript from now. Thanks ALOT Bade Bhaiya😊😅
@drprabhakarbhagwat
@drprabhakarbhagwat 3 жыл бұрын
Your all tutorials are awesome on HTML, CSS and JavaScript. I have learnt HTML and CSS, Now I m learning JavaScript. 🙏🙏👍👍
@balpreetkaur0356
@balpreetkaur0356 3 жыл бұрын
You are brilliant 🙂🙂 sir .i got all the logic of stop watch.i have been confused since i started project of stop watch i was so bemused . didn't know how to create stop watch .but thanks to you i learnt a lot.😘
@inamullahkhan7793
@inamullahkhan7793 3 жыл бұрын
Your projects are mind blowing I am really enjoying. Your projects are awesome wish for many many more projects as we are learning deeply all the three concepts html, css and javascript from those projects so it'll be so good if you do as much projects as you can. These projects are helping a lot in developing our programming logics.
@mdabidkalam3527
@mdabidkalam3527 2 жыл бұрын
A small bug is if we click start multiple times then speed of stopwatch increases. if we go with toggle approach it will be better. But a little complicated for beginners.........still a great project and i liked it.
@Tarunislive135
@Tarunislive135 Жыл бұрын
yes bro
@mdabidkalam3527
@mdabidkalam3527 7 ай бұрын
let timer = false; let count = 0; let sec = 0; let min = 0; let hr = 0; function stopWatch() { if (timer) { count++; if (count === 100) { count = 0; sec++; } if (sec === 60) { sec = 0; min++; } if (min === 60) { min = 0; hr++; } //------For showing 00 in hr min sec count in html------- let countStr = count < 10 ? "0" + count : count; let secStr = sec < 10 ? "0" + sec : sec; let minStr = min < 10 ? "0" + min : min; let hrStr = hr < 10 ? "0" + hr : hr; //---------showing HTML---------------- document.getElementById("count").innerText = countStr; document.getElementById("sec").innerText = secStr; document.getElementById("min").innerText = minStr; document.getElementById("hr").innerText = hrStr; setTimeout(stopWatch, 10); // recursion approach via microTask queue } } function start() { if (timer) return; //removing bug for multiple recursion of stopwatch() with return timer = true; stopWatch(); }; function stop() { timer = false; }; function reset() { timer = false; hr = min = sec = count = 0; document.getElementById("count").innerText = "00"; document.getElementById("sec").innerText = "00"; document.getElementById("min").innerText = "00"; document.getElementById("hr").innerText = "00"; };
@parveshqaiser9840
@parveshqaiser9840 Жыл бұрын
Awesome Explanation.. Before watching this video, watched 2-3 videos of stopwatch.. but didn't find useful..
@jamesseay3294
@jamesseay3294 2 жыл бұрын
Great work vishwajeet, easy to understand. you are an amazing teacher
@codewithayesha
@codewithayesha 10 ай бұрын
Thank you bhaiyya...😃
@sanazainubbukhari8361
@sanazainubbukhari8361 2 жыл бұрын
i love of way of you about teaching the logic & all never found more better for stop watch
@vkraj8735
@vkraj8735 3 жыл бұрын
The way of your teaching is really easy understandable.
@MukeshKumar-fz3sw
@MukeshKumar-fz3sw 2 жыл бұрын
Bhut achha samjhaya sir
@noemahmedkhan6105
@noemahmedkhan6105 2 жыл бұрын
Very Amazing watching from Pakistan ❤️🇵🇰 Kindly start next PHP language
@kiranmoura2974
@kiranmoura2974 2 жыл бұрын
Well explained, thank you so much for this video 👏👏👏👏
@pranjalsrivastava1629
@pranjalsrivastava1629 3 жыл бұрын
A small Bug in the code: Use 99 for count and 59 for all sec, min, hr because on 100 and 60 respectively that time is completed and isn't shown. ex. 60 sec = 1 min. So on completion of 60th second we update min by 1.
@mdabidkalam3527
@mdabidkalam3527 2 жыл бұрын
Another small bug is if we click start multiple times then speed of stopwatch increases. if we go with toggle approach it will be better. But a little complicated for beginners.........still a great project and i liked it.
@pritishsinghal3019
@pritishsinghal3019 2 жыл бұрын
@@mdabidkalam3527 for all those who are suffering from this problem, 1) use all the if conditions in a nested way (seconds inside count, minutes inside seconds and hours inside minutes), and put the settimeout() inside the count-if-condition i.e. trigger settimeout() only when the 'timer = true'.....this will solve the stopwatch becoming faster...when you click start after you hit stop or reset....BUT stopwatch will still become faster if you hit start multiple times, before hitting stop or reset....to solve it see 2) point. 2) put an if condition on start().... if(timer == true){ return; } else{ timer = true; stopwatch();
@sharatchauhan9860
@sharatchauhan9860 Жыл бұрын
@@mdabidkalam3527 we can disable start button after click on start and disable when we click on stop... easy
@mdtamzilsubhani7340
@mdtamzilsubhani7340 Жыл бұрын
I want Load the calculate video, you done the great job Sir
@sayalibhasme764
@sayalibhasme764 3 жыл бұрын
Sir waiting for javascript Advance tutorial, completed your html css js also M changing my field from mech to IT, so waiting for your tutorial to became front end developer
@GB-su9gu
@GB-su9gu 3 жыл бұрын
jv script part 15 today i learn..
@learnwithme2232
@learnwithme2232 3 жыл бұрын
I like this tutorial. In this lockdown , Javascript taught by sir become more interested. Thanks sir for introducing javascript for us.
@vkraj8735
@vkraj8735 3 жыл бұрын
Keep uploading such projects.
@sahilhans1867
@sahilhans1867 3 жыл бұрын
Bro pls check I have upload how to make calculator and password generator using javascript and pls support 🙏🙏🥺
@vkraj8735
@vkraj8735 3 жыл бұрын
@@sahilhans1867 not showing bro
@vkraj8735
@vkraj8735 3 жыл бұрын
@@sahilhans1867 not showing bro
@tahirzaman9441
@tahirzaman9441 3 жыл бұрын
We would like as much as projects possible... Cuz it's amazing... 0lease keep uploading projects
@sahilhans1867
@sahilhans1867 3 жыл бұрын
Bro pls check I have upload how to make calculator and password generator using javascript and pls support 🙏🙏🥺
@surojsantra4172
@surojsantra4172 3 жыл бұрын
This tutorial is helpful .............
@nainabirla24
@nainabirla24 Жыл бұрын
Thank you sir .Very nicely explained.
@12rajendrajangid90
@12rajendrajangid90 3 жыл бұрын
Html css or javascript #project ke bare mai bhi tutorial banao
@jay-shree-ram9
@jay-shree-ram9 Жыл бұрын
tq sir you are best teacher
@zainraza2090
@zainraza2090 3 жыл бұрын
Love from Pakistan Sir kindly baqi videos bhi upload kar dy Thanks...
@vkraj8735
@vkraj8735 3 жыл бұрын
Very useful sir, I started this tutorial, it's really awesome. You are doing really great work for us..
@raazkumar4523
@raazkumar4523 2 жыл бұрын
Superb explanation sir👌
@samsingh2246
@samsingh2246 3 жыл бұрын
U are explaining very well . sir react.js pr video kb aygi ...
@hhamzazaibbhatti1765
@hhamzazaibbhatti1765 3 жыл бұрын
Amazing sir thank you
@MakeMyShorts
@MakeMyShorts 3 жыл бұрын
one problem multi click on start button then see reaction sir please reply me
@sudhakarkumar3039
@sudhakarkumar3039 2 жыл бұрын
nice explanation... 👍🏻
@spsp3193
@spsp3193 3 жыл бұрын
Superb explanation..
@mohitshastri828
@mohitshastri828 3 жыл бұрын
Amezing videos sir 👍👍👍
@avadhutpatil6625
@avadhutpatil6625 2 жыл бұрын
Thanks Sir. . Your videos are just amazing😍. you are really doing great work for learners like us.
@harendrasinhparmar9096
@harendrasinhparmar9096 3 ай бұрын
Thank you.sir
@nadirkhanvlogs0
@nadirkhanvlogs0 2 жыл бұрын
1 more bug if we click multiple time on start button as a result speed of the watch increases on every click
@bhagirathiverma2627
@bhagirathiverma2627 Жыл бұрын
Thanks a lot sir for this nice tutorial....😇😇😇😇 there is an error in this code if I click start multiple times then speed of stopwatch increases.🤔
@maamobileoldphoneshop9356
@maamobileoldphoneshop9356 3 жыл бұрын
Great project when will this course end bhaiya? My friend reffered this channel
@anshikamaurya182
@anshikamaurya182 3 жыл бұрын
Nice sir👍👍
@durgayadav2545
@durgayadav2545 3 жыл бұрын
Is this is a last video on Javascript. if not then how much more video will come? waiting for your lovely teaching :)
@souravsarkar-mu8hq
@souravsarkar-mu8hq 2 жыл бұрын
Excellent sir ❤❤
@carry_minatii
@carry_minatii Жыл бұрын
Hi sir, this project was mind blowing but sir there are some bug in this project 1. If the start is pressed multiple times then the timer speed is increased. 2. The timer is not accurate almost it runs of 7 seconds only in 10 seconds.
@wanderwithprateek
@wanderwithprateek Жыл бұрын
hi there u got the solution of 2nd point?... please do reply..thankyou
@rashid-iqbal
@rashid-iqbal Жыл бұрын
@@wanderwithprateek just change the setTimeout,value from 10 relative to clock.
@subhamsahoo5203
@subhamsahoo5203 3 жыл бұрын
Bro mix all the JavaScript playlist and make a video
@rajatchaurasia3578
@rajatchaurasia3578 3 жыл бұрын
Present sir 💥😍💥😍💥😍
@parmaryash4406
@parmaryash4406 3 жыл бұрын
Amazing👍👍👍
@pranjalsrivastava1629
@pranjalsrivastava1629 3 жыл бұрын
Another Bug: What if we keep on pressing 'start' button - it keeps adding and the time starts running like crazy
@AbdurRahman-qc3ip
@AbdurRahman-qc3ip 3 жыл бұрын
i got a solution do this if (timer == true) { document.getElementById("start").disabled = true; }
@hamzaishfaq9548
@hamzaishfaq9548 3 жыл бұрын
@@AbdurRahman-qc3ip Thanks it worked
@AbdurRahman-qc3ip
@AbdurRahman-qc3ip 3 жыл бұрын
@@hamzaishfaq9548 mention not
@patelkuldeep7531
@patelkuldeep7531 Жыл бұрын
I also faced this problem for solution I used disabled attribute
@pushkarkumar5578
@pushkarkumar5578 3 жыл бұрын
love your work ty for educating us.
@anmoldubey4089
@anmoldubey4089 3 жыл бұрын
Sir maine html and css complete kr liya hai... aap hi k tutorial se ...will javascript be enough for making my website responsive????
@anmoldubey4089
@anmoldubey4089 3 жыл бұрын
@@09.arkodevmukherjee24 thanks dude
@Oldstoryhouse
@Oldstoryhouse 3 жыл бұрын
@@09.arkodevmukherjee24 no dude...just know the basics of internet fundamentals and web hosting is enough coz...frontend needs at least 1 year of work...give ur hands on framwork and projects then switch to backend...
@Oldstoryhouse
@Oldstoryhouse 3 жыл бұрын
@@09.arkodevmukherjee24 thats why the website made by people like you crashes 🤣🤣.. Bro there is thing seo and optimization...lots of professionals took long time to achieve it...
@GeniuslyTensai
@GeniuslyTensai 3 жыл бұрын
From when will the advance js start?
@prajeshparekh7175
@prajeshparekh7175 2 жыл бұрын
Hi TechGun, ye pura stopwatch timer ko localstorage me store kaise karwaye taki is page ko refresh karne par hamara timer count on hota rahe without reseting. uspar bhi tutorial banao with same stopwatch.
@pushkarkumar5578
@pushkarkumar5578 3 жыл бұрын
to show 2 digit number we can use localString method eg = number.toLocaleString( "en-US",{ minimumIntegerDigits: 2, useGrouping: false } );
@09.arkodevmukherjee24
@09.arkodevmukherjee24 3 жыл бұрын
Sir please make one project on Modals like how to make it.
@omkarjaripatke9398
@omkarjaripatke9398 2 жыл бұрын
isme bhi ek problem hai hum jitni bar start click krte hai stopwatch ka timer fast hojata hai maybe becoz wo multiple time function call kr raha hoga isliye
@gamingwithajk7253
@gamingwithajk7253 Жыл бұрын
bhai sahab yar
@chakra1729
@chakra1729 3 жыл бұрын
Sir CUSTOMIZED video player ka tutorial upload karo
@nimeshtank310
@nimeshtank310 3 жыл бұрын
Perfectly explained. But settimeout m confused hua
@umeshpatel9408
@umeshpatel9408 3 жыл бұрын
That's great thanks sir💓💓💓🤟🤟
@AshishYadav-pd8bi
@AshishYadav-pd8bi 2 жыл бұрын
hi there! , I found the small bug in this code, if you hit more than one time on the start button then the function stopWatch() call again , if you hit 5 time stopWatch() call 5 times in the nested type function inside function , due to this the timer increase exponentially.
@somilyadav4293
@somilyadav4293 2 жыл бұрын
I am also getting this bug
@aabhasjain96
@aabhasjain96 2 жыл бұрын
For this bug you need to disable the start button, like this : Add below line inside the start function: document.getElementById("start").disabled = true; Also add below line inside stop and reset function: document.getElementById("start").disabled = false;
@MohitAanjne
@MohitAanjne 2 жыл бұрын
@@aabhasjain96 Yes I also Observed this bug..but still not working.
@bajrulmiddya1176
@bajrulmiddya1176 Жыл бұрын
@@aabhasjain96 Button ko disable Karke Koi fayda Nahin ho raha hai
@aabhasjain96
@aabhasjain96 Жыл бұрын
@@bajrulmiddya1176 kyu nahi ho raha bhai, disable kar diya ro click nahi hoga aur function phir se call nahi hoga.
@gamingstar5998
@gamingstar5998 3 жыл бұрын
Tailwind css kha opor ak video banaya please
@12rajendrajangid90
@12rajendrajangid90 3 жыл бұрын
Great sir
@gamingwithajk7253
@gamingwithajk7253 Жыл бұрын
bro code me ik problem hy agy hum start ke button per 2 bar click krde to tym zyda jldi increase hota agr 3 bar to or jldi
@factinzone7607
@factinzone7607 2 жыл бұрын
Sir php ka tutorial banaiye plz
@12rajendrajangid90
@12rajendrajangid90 3 жыл бұрын
Outstanding work
@urghh
@urghh 3 жыл бұрын
Thank you ...🙏🏻
@dharmbharodiya5158
@dharmbharodiya5158 3 жыл бұрын
You're the best!!!
@ganeshkhadka2396
@ganeshkhadka2396 3 жыл бұрын
Thank you so much for your efforts bro love from nepal!
@praveenbadasar9956
@praveenbadasar9956 2 ай бұрын
Nice 🎉
@TechGun
@TechGun 2 ай бұрын
Thanks 🤗
@satyamrawat1245
@satyamrawat1245 2 жыл бұрын
Master bhushan
@lovishaggarwal1402
@lovishaggarwal1402 3 жыл бұрын
There was a bug when i restart and start or stop start the time increases evry time and gives incorrect time (why?)
@panyam_hub_infoinfo5487
@panyam_hub_infoinfo5487 3 жыл бұрын
Plz make pagination with photo
@pranjalsrivastava1629
@pranjalsrivastava1629 3 жыл бұрын
Bug in the code or logic used: the stopwatch is running slow comparing to google stopwatch watch or stopwatch in smartphone. Please help, maybe a refined logic would work?
@rashid-iqbal
@rashid-iqbal Жыл бұрын
use 8 millisecond in setTimeout,it will work
@Meraj484
@Meraj484 3 жыл бұрын
Bhi plz c language pr video banye
@Raj_Vishwa1
@Raj_Vishwa1 3 жыл бұрын
Sir app jo shortcut use karte ho vscode me uska ek alag video bana digiye 🙏🏻
@TechGun
@TechGun 3 жыл бұрын
Tips and tricks for web developer title se ek video already uploaded h. Usme sab bataya h
@Raj_Vishwa1
@Raj_Vishwa1 3 жыл бұрын
@@TechGun ok I'll check.. thanks sir🙏🏻
@ashishmaisachinanand9599
@ashishmaisachinanand9599 Жыл бұрын
Sir where we find this code? Which you had taught
@muhammadasim4945
@muhammadasim4945 3 жыл бұрын
Waiting for JavaScript in 1 video
@drprabhakarbhagwat
@drprabhakarbhagwat 3 жыл бұрын
Vishvajeet bhai ji good afternoon, Aap jo bhi function run kar rahe ho, woh console.log me show hota h, woh web page par kab show hoga html ki tarah....! Please clear my doubt 🙏🙏
@TechGun
@TechGun 3 жыл бұрын
Jab aap project tak video dekhoge to sab clear ho jayega ki kyu console.log kar raha hu aur webpage pe kaise dikhega.
@drprabhakarbhagwat
@drprabhakarbhagwat 3 жыл бұрын
@@TechGun thanks Vishwajeet bhai abhi toh 18th video par aaya hu, mujhe array function kafi acha laga 🙏👍
@Oldstoryhouse
@Oldstoryhouse 3 жыл бұрын
Thats why we use events ...
@sarkari-mahiti
@sarkari-mahiti 3 жыл бұрын
Sir jaldi video upload karo sir
@sarkari-mahiti
@sarkari-mahiti 3 жыл бұрын
Html css JavaScript complete hone ke bad angular choose kare ya react sir
@TechGun
@TechGun 3 жыл бұрын
React
@syedismail9758
@syedismail9758 3 жыл бұрын
Sir react pe tutorial banaye js ke baad plz
@Oldstoryhouse
@Oldstoryhouse 3 жыл бұрын
Its upto you if you want flexible libraries then choose react or if you want industrial framwork with big community then angular is the best option
@doyouknow750
@doyouknow750 Жыл бұрын
React
@inspiringstories143
@inspiringstories143 3 жыл бұрын
Sir ji kya javaScript Es tutorial se complete ho gaya he kya .
@difinreel1883
@difinreel1883 Ай бұрын
isme ek problem hai, agar stop dabane ke baadh vapis start dabaya toh time speeed ho raha hai, uska problem ka kya solution hai?
@malik_creation38
@malik_creation38 Жыл бұрын
sir there are bug when we click on start button then speed of mint,sec and hours are increaing speedly.
@mdtamzilsubhani7340
@mdtamzilsubhani7340 Жыл бұрын
I done this program
@12rajendrajangid90
@12rajendrajangid90 3 жыл бұрын
Sir aap ne study konsi ki hai????
@MohitThakur-yz7bb
@MohitThakur-yz7bb Жыл бұрын
How can make it for multiple divs in html
@surojsantra4172
@surojsantra4172 3 жыл бұрын
Jquery ka tutorial chaieay!!
@Oldstoryhouse
@Oldstoryhouse 3 жыл бұрын
Abhe jquery ka koi fayda nhi bhai..ES6 me sab h
@surojsantra4172
@surojsantra4172 3 жыл бұрын
@@Oldstoryhouse Thank you !!!
@loki5059
@loki5059 3 жыл бұрын
Display:inline-flex Display:flex Ke bare mai video banao please
@farighahmadsabri3018
@farighahmadsabri3018 Жыл бұрын
1 small bug: The stopwatch stops to function when we change the tab and starts again from the point we left when we are back on the page. Any fix to this?
@atharvashivalkar6426
@atharvashivalkar6426 3 жыл бұрын
Hello sir I have one doubt that I seted timer=true but it does not show me any error ..can you please explain ..
@nikitakanwar8041
@nikitakanwar8041 2 жыл бұрын
Start pe double click krne pe speed bhi bhad rhi hai...........eska koi solution btao sir 🙏
@maggie7850
@maggie7850 3 жыл бұрын
Stopwatch is slow as compare to Google or phone stopwatch what's bug ? Please help thanks.
@fullpower4275
@fullpower4275 3 жыл бұрын
Sir python easy hai ya php?🙏
@TechGun
@TechGun 3 жыл бұрын
Php and python Dono hi easy h, java c c++ ye 3 toda tough h
@fullpower4275
@fullpower4275 3 жыл бұрын
@@TechGun 🙏
@swarnavobose5578
@swarnavobose5578 2 жыл бұрын
sir same to same code karne k bad bhi start/stop koi bhi button kam nhi kar rha mera... kya kare sir? please help
@SAACHIPANDEY
@SAACHIPANDEY Жыл бұрын
24:30
@ps6846
@ps6846 2 жыл бұрын
There is bug in this . By pressing start button multiple times timer is going exponentially fast. What is the resolve for this?
@INDClashers
@INDClashers 3 жыл бұрын
Really great tutorials but don't know Itna kaam view 🤔🤔
@09.arkodevmukherjee24
@09.arkodevmukherjee24 3 жыл бұрын
First
@pushkarkumar5578
@pushkarkumar5578 3 жыл бұрын
why we writing stopwatch function in brackets "" in setTimeout funtion
@vaibhavtiwari7659
@vaibhavtiwari7659 3 жыл бұрын
Sir agar hamne Pc me ek webpage banaya, fir us webpage ka pura folder mobile me transfer kiya to mobile me css ki file aur images chrome me kaam nahi karti kewal HTML show karta hai, link bhi sahi lagaya hai.
@vkraj8735
@vkraj8735 3 жыл бұрын
Yes, iske liye aapko apna site kisi server per upload krni hogi.. Free or trial ke liye aap github ka use kr skte ho.
@vaibhavtiwari7659
@vaibhavtiwari7659 3 жыл бұрын
@@vkraj8735 but offline ke liye ?
@krishnaTiwari851
@krishnaTiwari851 3 жыл бұрын
sir this series finished or not ?? more interesting sir
@bibekgyanwali8294
@bibekgyanwali8294 3 жыл бұрын
How to do marquee with the help of js?
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 48 МЛН
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 32 МЛН
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 4 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 2,8 МЛН
How to make a Stopwatch using HTML CSS and JavaScript
25:33
Code Traversal
Рет қаралды 59 М.
ENGLISH SPEECH | S. JAISHANKAR: India's Five Pledges (English Subtitles)
17:10
ENGLISH SPEECH | PALKI SHARMA: India's Right Path (English Subtitles)
14:44
Build Stopwatch Project Using HTML, CSS, JavaScript in Hindi
38:42
SBS online classes
Рет қаралды 9 М.
JavaScript Tabs Tutorial in Hindi / Urdu
23:38
Yahoo Baba
Рет қаралды 11 М.
JavaScript Project | Image Search App With JavaScript API
48:19
Tech2 etc
Рет қаралды 231 М.
Build A Calculator With JavaScript Tutorial
38:50
Web Dev Simplified
Рет қаралды 1,5 МЛН
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 48 МЛН