2 projects with Async JS | chai aur

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • Visit chaicode.com for all related materials, community help, source code etc.
    #javascript #hindi
    Sara code yaha milta h
    github.com/hit...
    Discord pe yaha paaye jaate h:
    hitesh.ai/discord
    Instagram pe yaha paaye jaate h:
    / hiteshchoudharyofficial

Комментарии • 567

  • @vrajverma3907
    @vrajverma3907 Год назад +113

    cheeze itni easy hoti nahi jitni easy aap bana dete ho sir, I wish I found you during my clg time, but nevertheless I know u are here always to help us. Thanks you so much.

  • @learner801
    @learner801 Месяц назад +12

    Solution for task 1 at 16:38
    const saydate = function(str){
    console.log(str , Date.now())
    }
    let Interval;
    document.querySelector("#start")
    .addEventListener('click', function(){
    Interval = setInterval (saydate, 1000, 'Anything')
    } )
    document.querySelector("#stop")
    .addEventListener ("click", function(){
    clearInterval (Interval)
    })
    I'm extremely grateful to this channel! This is the most in depth tutorial for JS I've ever found!

    • @DharmpalSinghSisodiya-zh1df
      @DharmpalSinghSisodiya-zh1df 11 дней назад +2

      ek problem hai isme agar start par dooble click kare to fir vo stop nahi hoga

    • @learner801
      @learner801 10 дней назад

      @@DharmpalSinghSisodiya-zh1df I reran it and what u said is true, but I can't seem to understand what's causing this. I'm sorry for this, if u know the reason , do tell me! thnx for pointing it out.

    • @ashishbisht6857
      @ashishbisht6857 17 часов назад

      Thanks buddy

    • @learner801
      @learner801 5 часов назад

      @@ashishbisht6857 np ;)

  • @code_with_okg
    @code_with_okg 10 месяцев назад +106

    3:28 setTimeour( )
    10:02 clearTimeour()
    13:40 setInterval()
    15:46 clearInerval()
    17:05 project 6 (Background Color Changer)
    32:02 project 5 (keyboard checker)
    ( : ye lo Bhai Ji : )

  • @thecalgarians4597
    @thecalgarians4597 6 месяцев назад +25

    Hardly any tutor taught clearTimeout() in their tutorials. Kahan the aap Hitesh ji itne time se. You're a blessing in disguise. ❤

  • @inamali4714
    @inamali4714 Год назад +97

    Pahle chai bna leta hu fir chai ke saath video dekhunga 😅

  • @BCA-batch
    @BCA-batch Год назад +16

    SetTimeout(function/function reference,milliseconds)
    ClearTimeout(variable which hold the reference of settimeout)
    SetInterval(function /functiom reference, milisecond) - repeat until we clear it.
    ClearInterval(reverence of function)

  • @Hamza-Pro-Dev
    @Hamza-Pro-Dev 3 месяца назад +8

    Task 16:30
    My solution
    const stInt = function(str){
    console.log(str, Date.now());
    }
    let interVal;
    document.querySelector('#start').addEventListener('click',function(){
    interValid = setInterval(stInt, 1000, 'Hello World');
    })
    document.querySelector('#stop').addEventListener('click', function(){
    clearInterval(interValid);
    console.log('clicked');
    })

  • @ahtishams
    @ahtishams 11 месяцев назад +43

    23:29 you guys can also use this for random colors
    //GET RGBA FOR BACKGROUND COLOR STRING
    function getRGBA() {
    let random1 = Math.floor(Math.random() * 255);
    let random2 = Math.floor(Math.random() * 255);
    let random3 = Math.floor(Math.random() * 255);
    return `rgba(${random1},${random2},${random3})`;
    }

    • @fatkneegar
      @fatkneegar 10 месяцев назад

      thankyou

    • @Abbas_404
      @Abbas_404 9 месяцев назад +4

      function randomColor () {
      let color = "";
      for (let i = 0; i < 3; i++) {
      color += ` ${Math.floor(Math.random() * 256)}`
      }
      return body.style.backgroundColor = `rgb(${color})`
      }

    • @doremon3692
      @doremon3692 7 месяцев назад

      mai bhi yeh soch rha thaa krne ko @@Abbas_404

    • @shouviksarkar7900
      @shouviksarkar7900 Месяц назад

      I also used rgba;
      function random(num){
      return Math.floor(Math.random()*(num+1));
      }
      let changeColor;
      document.getElementById('start').addEventListener('click', () => {
      changeColor = setInterval(()=>{
      let colorCode = `rgb(${random(255)}, ${random(255)}, ${random(255)})`;
      document.body.style.backgroundColor = colorCode;
      }, 1000)
      })

  • @piyushramnani1014
    @piyushramnani1014 Год назад +24

    Great content Hitesh, I hope more and more people find this amazing channel where you make things so easy to understand. When I was working on an app (MERN - Chat Application) I found these topics tricky because just a keyword await had so much power that it was not encrypting the passwords I was sending to the DB. After hours of debugging, it made me realize that I need to learn such topics first to be able to build such application. But what good way to learn than a project. Anyhow! I am glad that we have people like you in tech helping us in our journey.

  • @Vishal_0841
    @Vishal_0841 Год назад +3

    Sir 3din phle start kiya JavaScript apke channel pe aur lgbhag aadha Video dekh liya practical bhut acha smjhaye apne 🥰

  • @tarunsoni2443
    @tarunsoni2443 4 месяца назад +3

    31:20
    We are checking intervalId is not null then only start the interval otherwise it would create the multiple instances of the setInterval which would change the background color much faster and the stop button would not be able to clear all intervals if initially we have clicked on start button multiple times and then we click on stop button.

    • @Azharuddin-khan
      @Azharuddin-khan 3 месяца назад +1

      He didn't properly explained the reason why it was not working as you mentioned. it would be much better if he would have said, we are setting interval to none to save memory space and checking intervalID for the problem you mentioned in your comment. He made it look like the stop was not working because we set intervalID to null, while the actual reason of why it was not working was reason you mentioned.

  • @_pankajuday
    @_pankajuday Год назад +2

    Ek esa yt channel jo javascript ka series pura vistrit rup se patha rahe hai. Aapko iske lie bahut bahut dhanyawad ❤❤😊

    • @chaiaurcode
      @chaiaurcode  Год назад +6

      Is series se competition paid courses b nhi kr payenge

    • @devgauravjatt
      @devgauravjatt Год назад

      ​@@chaiaurcodeyour theme font name ?

    • @saqibullah7286
      @saqibullah7286 Год назад

      @@chaiaurcode belkul Sir no doubt

  • @FaojulAzim-k1f
    @FaojulAzim-k1f Месяц назад +1

    First of all I want to mention that the course is fire. So far, among all the courses I have taken this one has more in-depth concepts and I am really happy to find out that such free course exits. I would request Hitesh Sir to bring more courses like this in the future.

  • @adityashukla6966
    @adityashukla6966 Год назад +5

    Sir i love the way of ur teaching.... I literallyy amazed after seeing ur video... I learned the enhanced perspective of learning of web development... Please sir made video fast

    • @chaiaurcode
      @chaiaurcode  Год назад +3

      So nice of you, jldi hi laate h

  • @supratiksarkar1195
    @supratiksarkar1195 Год назад +5

    I can tell my two months journey into full stack. I found it daunting to master backend. I switched to firebase. Next i started small projects in JS but i had to throw it all away once i started building a task management website using react. Its completely different, doing small projects and building something you want to according to your vision. There are ao many things involved. I didn't even do any react hooks individually but i am implementing and trying to understand them in the website. Its daunting, challenging.

    • @tajinder715
      @tajinder715 Год назад

      hey i would like to connect eith you. your discoed please!

  • @ritik.choubey
    @ritik.choubey 6 месяцев назад

    " ek thread pr chalta isliye, javascript hai" gave me goosebumps
    love the way you teach !!!

  • @sachinandanprasad7618
    @sachinandanprasad7618 Месяц назад

    love your clean way writing code

  • @waleedraja3566
    @waleedraja3566 6 месяцев назад

    one of the best channel for learning out standing i love it... big love big respect for you sir from pakistan.
    Task One
    Chai Or Javascript
    start
    stop

    const date = function(){
    console.log("waleed", Date.now());
    }
    document.querySelector('#start').addEventListener('click', function(){
    const intervaled = setInterval(date ,1000);
    console.log("Start");

    document.querySelector('#stop').addEventListener('click', function () {
    clearInterval(intervaled);
    console.log("Stop");
    })})

  • @divyajyotibasu3001
    @divyajyotibasu3001 9 месяцев назад +4

    I think the 'Stop' button not 'seemingly' working at 29:10 is not because of indexId value being changed from null to the reference of setInterval() but because of that prior to clicking the 'Stop' button, the 'Start' button was clicked multiple times hence multiple setInterval() methods are running simultaneously. The indexId has the reference of only the last setInterval() and the references of the previously started intervals have been lost. Clicking on 'Stop' clears that process but the other prior started setIntervals continue to run hence it appears that 'Stop' did not work at all. The check if(!intervalId) ensures that if an interval is already executing, another interval should not start. Great series overall! Enjoyed watching and doing the projects myself alongside

    • @mukulKasana
      @mukulKasana Месяц назад

      yes , brother you are right

  • @Pratikgabani
    @Pratikgabani Месяц назад +1

    Sir ji app to bol dete hai ki share kro but ye itna precious resource hai ki agr share kiya to hume hi nuksaan hai , competition aur jyaada bdh jaaega. Ye to khud k pair pr hi kulhaadi marne wali baat ho jaaegi 😇. Correct me if I am wrong

  • @Oxino-h4d
    @Oxino-h4d 7 месяцев назад +2

    29:13 i run the same exact code but mine one is stopping even after starting and stopping again and again

  • @Dev-Phantom
    @Dev-Phantom 8 месяцев назад +1

    wonderful lecture , very depth analysis , always asked in interviews these types of questions. one of the best lecture.

  • @rohitkumarsingh6991
    @rohitkumarsingh6991 5 месяцев назад +2

    sir why have you used in project 5

  • @shubhanshushrivastava7618
    @shubhanshushrivastava7618 7 месяцев назад +5

    16:30
    Task-1
    let interval_Variable;
    let myDate = new Date();
    document.querySelector('#start').addEventListener('click',()=>
    {
    interval_Variable= setInterval(function(){
    console.log('Hello Shubh', myDate.toLocaleString());
    },10000)
    })
    document.querySelector('#stop').addEventListener('click',()=>
    {
    clearInterval( interval_Variable);
    console.log('stopped');
    })

    • @ihtapirt
      @ihtapirt 3 месяца назад +1

      Hey Shubhanshu, I have an issue like the code I have posted below this reply, in that my code is running without error and my start and stop buttons are working but when I click the stop button clearInterval doesn't works. i want to know why ?

    • @ihtapirt
      @ihtapirt 3 месяца назад

      Interval Example
      Kartikey
      Start
      Stop
      let k;
      let fStart = function() {
      console.log("Kartikey");
      }
      const ks = function() {
      k = setInterval(fStart, 2000);
      }
      let s = function() {
      clearInterval(k);
      }
      document.querySelector('#start').addEventListener('click', ks);
      document.querySelector('#stop').addEventListener('click', s);

  • @mohitpathak8020
    @mohitpathak8020 Год назад +2

    Love to listen your Hindi 😄, And Always exited to learn something new from your videos keep uploading ..

  • @prashantapandit7871
    @prashantapandit7871 9 месяцев назад +1

    Thank you Hitesh for making JS so simple for me.
    i have tried to create a greeting project using setInteval() below: Just wounding how's my coding structure looks like?

    Events
    Greet

    Start Greeting
    Stop Greeting
    let greet ;

    //start:
    function startGreet(){
    greet = setInterval(function(a){

    document.querySelector('#line').innerText = `${a} at ${Date.now()}`;
    }, 1000, 'Namaste'); // the third is the function parameter.

    }

    // Stop:
    function stopGreet(){
    clearInterval(greet);
    document.querySelector('#line').innerText = 'Greet Stopped!';
    // console.log(greet);
    }

    document.querySelector('#start').addEventListener('click', startGreet);
    document.querySelector('#stop').addEventListener('click', stopGreet);

  • @onkardheemate1066
    @onkardheemate1066 26 дней назад

    🔥🔥🔥🔥🔥🔥 content will smash whole youtube

  • @giyasahmed5090
    @giyasahmed5090 Год назад

    Jabse apka series start kya js ka avi tak ka class bht easy lagne laga hai. U are awesome sir. 🎉🎉🎉🎉🎉.

  • @ChiragGarg-jl9im
    @ChiragGarg-jl9im 5 месяцев назад +1

    3:28 setTimeour( )
    10:02 clearTimeour()
    13:40 setInterval()
    15:46 clearInerval()
    17:05 project 6 (Background Color Changer)
    32:02 project 5 (keyboard checker)

  • @Dev-Phantom
    @Dev-Phantom 8 месяцев назад +1

    Awsome project on ( setTimeout and setInterval ) Never seen such interesting lecture with such indepth project.

  • @abheermehrotra329
    @abheermehrotra329 2 месяца назад

    thank you so much for this playlist, I tried learning JS during btech, but didn't like it much. Now I am loving it

  • @KruelGodGaming
    @KruelGodGaming 7 месяцев назад

    my man just gave away deep knowledge for free so that everyone can learn from it ..... hats off

  • @ayushkathariya
    @ayushkathariya Год назад +2

    Goat of web development is back 🐐

  • @nehabansal370
    @nehabansal370 7 месяцев назад +1

    Best series ever. Thanks a ton again

  • @richikbasu2506
    @richikbasu2506 3 месяца назад

    this series is really underrated

  • @tech_channel110
    @tech_channel110 Год назад +1

    behtareen behtareen behtareen behtareen behtareen behtareen behtareen

  • @AbhinavThatipally
    @AbhinavThatipally 4 месяца назад

    Love you sir. Regret that RUclips didn't recommend this channel long ago. Thanks you for the playlist sir!

  • @PraveenKumar-24
    @PraveenKumar-24 8 месяцев назад +1

    Namaste Guruji,
    Thanks for your valuable knowledge and time..

  • @basimtanveerjutt6217
    @basimtanveerjutt6217 2 месяца назад

    Sir your teaching skill is amazing

  • @Vaibhav-y6b
    @Vaibhav-y6b 3 месяца назад

    sbse best channel hai sir aapka

  • @vanshbhatnagar1117
    @vanshbhatnagar1117 4 месяца назад

    Sir , your teachingstyle are simplier and are just full of experience , i am understanding javascript now very well thank you so much sir

  • @veenusnishad2453
    @veenusnishad2453 3 месяца назад

    the random color generator code was awesome

  • @learnprogram359
    @learnprogram359 Год назад

    thank you sir , bina dekhe project 6 main ne banaya ,aap ne jitna samjaya us ki help se.phali bar khud me confidence aarha hai because of you sir ,again thank you so much

  • @ZoneFact_YT
    @ZoneFact_YT 2 месяца назад

    Sir Hitesh is a wonderful experienced person.... If you want to be a developer then listen to sir Hitesh lectures ❤

  • @girdhar3224
    @girdhar3224 3 месяца назад

    6:13 "kaafi der h"
    I didn't realise that until I did it myself
    Thank You sir🙏🙏

  • @DevAbhinav
    @DevAbhinav 5 месяцев назад

    sir appne isme jo random color ke liye function likha tha woh maine first project mein bhi add kara tha khud se loop lga kar jisse hash ke random number se color lene ke liye. And you also add that same here. I never have this kind of feeling before. mujhe toh lga tha js muskil hai but yeh toh bhot assan banadi aapne . Thanks Sir
    💌💌💌💌💌

  • @kartikbapna5626
    @kartikbapna5626 2 месяца назад

    best free javascript resource on youtube

  • @Legend-cn9zt
    @Legend-cn9zt 6 месяцев назад

    Best real teacher on RUclips

  • @anirbannath2636
    @anirbannath2636 10 месяцев назад

    The way u explain is fabolous , i dont think there are any other RUclipsr related to programming who can even reach half of ur level on quality and explanation

  • @SAFEERALAM-dd2ny
    @SAFEERALAM-dd2ny 4 месяца назад

    We need more teachers like you ❤ .

  • @abuhurayra8429
    @abuhurayra8429 Год назад +1

    cheeze itni easy hoti nahi jitni easy aap bana dete ho sir, I wish I found you during my clg time, but nevertheless, I know u are here always to help us. Thanks you so much. (2)

  • @aryanbhatt5934
    @aryanbhatt5934 3 месяца назад

    Hats off to you sir, I don't know how you make such hard topics this much easy. Wondering that how lucky would be those people who personally train under you in the company, so many like me are dreaming of to happen with us. Thank you so much for this precious knowledge.

  • @oqant0424
    @oqant0424 7 месяцев назад

    12:44 enjoying the series a lot 💖

  • @Firebornlegends
    @Firebornlegends Месяц назад

    East or west , Hitesh Sir is the best

  • @shubhamzingare4433
    @shubhamzingare4433 11 месяцев назад

    One of the best series he sir, mene jitani bhi js sikhi he aapse hee sikhi hain, ekdm fresher aaya tha me, aap aapka work kabhi roko mat ❤❤❤
    Atleast koi toh he joh sochta he ki bhale students ke paas paise nahi he, phir bhi me padaunga, aapka ye motivation bohot sahi he. Kahi bhi other videos me jaao baki chize bohot hoti he bht aap baki baaten bhi JS ko context me leke karte ho ❤❤❤❤

  • @BitFire007
    @BitFire007 6 месяцев назад

    "Chai aur Code, your teaching style is a breath of fresh air. Thanks for making JavaScript a joy to learn!"

  • @smritiii7697
    @smritiii7697 2 месяца назад

    sir i did the start and stop assignment, thank you

  • @dynamiczonex
    @dynamiczonex Год назад +1

    Please continue this series because it helps lot me

  • @chandanparida18
    @chandanparida18 Год назад +3

    Iss se behtar course lane main kisi ko 100 saal lag jayega, 😊 sayad uss se bhi jyada
    Just fabulous😊 course

  • @hamzasajid7973
    @hamzasajid7973 6 месяцев назад

    Real 0 to mastery playlist for javascript ❤

  • @sundaramsingh-e4i
    @sundaramsingh-e4i 9 месяцев назад +4

    16:50
    const sayDate = function(str){
    console.log(str, Date.now());
    }
    const toStart = function(){
    intervalId = setInterval(sayDate, 1000, "hi");
    }
    const toStop = function(){
    clearInterval(intervalId);
    }
    document.querySelector('#start').addEventListener('click', toStart);
    document.querySelector('#stop').addEventListener('click', toStop);

    • @Pain72
      @Pain72 5 месяцев назад +2

      You declear intervalid in toStart block then how can you access it on toStop block?

    • @Mani_shkr
      @Mani_shkr 4 месяца назад +1

      right how is it possible?

  • @salimrazaraza1048
    @salimrazaraza1048 7 месяцев назад

    Best JS Series in the world

  • @anasansari5038
    @anasansari5038 Год назад +1

    you are amazing sir, respect for you from bottom of my heart, one of your student from pakitsan

  • @teambaaz007
    @teambaaz007 2 месяца назад

    Sir you are osm mene pehle bhi apki series' follow ki thi but thoda beginner tha to. Adhe raste Mai aakr me thoda smjh nhi paya tha but ab apke har ek project mene khud se bhi kiye hai help of you 😅 apka jo tarika h js pdhane ka voh kafi sahi h kafi jaldhi apne js ke fundamental and imp topics cover karwa diye thnk you so much sir ji mai apko LinkedIn par tag bhi krunga apse sikhe kuch project ko thoda aur change and kuch functionality aur add kr ke 😅

  • @BioChemAcademy
    @BioChemAcademy 7 месяцев назад

    hi( Great content Hitesh, I hope more and more people find this amazing channel where you make things so easy to understand. When I was working on an app (MERN - Chat Application) I found these topics tricky because just a keyword await had so much power that it was not encrypting the passwords I was sending to the DB. After hours of debugging, it made me realize that I need to .....
    cheeze itni easy hoti nahi jitni easy aap bana dete ho sir, I wish I found you during my clg time, but nevertheless I know u are here always to help us. Thanks you so much.)

  • @vedantpanchal1276
    @vedantpanchal1276 Год назад +4

    Sir, in the unlimited colors project i tried a very weird case where i clicked start button again after clicking the start button and after that the setinterval time increased and the color started to change very quickly and also the stop button "stopped" working. So i did a hack by disabling the start button after clicking once and enabling the button after stopping. I love your videos sir ❤. And also my by watching your videos my mind started to think about every type of user scenario. Thank you so much sir :)

    • @tajinder715
      @tajinder715 Год назад

      hey i would like to connect eith you. your discoed please!

    • @vedantpanchal1276
      @vedantpanchal1276 Год назад

      @@tajinder715username:- vedantpanchal

  • @rpvish9982
    @rpvish9982 7 месяцев назад

    I am learning before your channel but now watch only your video is very perfectly thank you so much for beginners sir 😊

  • @mehmoodhassan-m2z
    @mehmoodhassan-m2z Год назад +7

    Aslam o Alaikum.... your course is wonderful and *Allah* give you a long and healthy life

    • @technicalrider6196
      @technicalrider6196 Год назад +1

      no need ,Supreme God bless him,Jai Mahakal

    • @codeeasy419
      @codeeasy419 11 месяцев назад +2

      Yaha pe Allah kaha se aagye bhai.. ?? pdho gyan lo ar niklo, bakchodi krna jruri hai?

  • @MohammedHasmi577
    @MohammedHasmi577 6 месяцев назад

    18:18 sir thoda time laga but Maine khud se banaya ye project tumne suruvat se bola tha khud se kuch to banahi loge ye js se and I got it ❤❤

  • @Niteshmaurya1234
    @Niteshmaurya1234 10 месяцев назад

    Thank you so much sir dobara video shoot karne ke liye
    Thank you so much for your lots of efforts

  • @shivaniverma4266
    @shivaniverma4266 4 месяца назад

    thanks dubara video record krne k liye yeh js ka student apko thanks khta hai like the video also subscribe toh phle se hai !!!!!

  • @ajay.s4958
    @ajay.s4958 3 месяца назад

    This is the best series

  • @shees143.
    @shees143. 4 месяца назад

    you are very good teacher

  • @ashutoshrout287
    @ashutoshrout287 3 месяца назад

    Thank You sir for this absolutely great course

  • @Oliver_Queen71
    @Oliver_Queen71 7 месяцев назад

    no one i repeat no one including the paid javaScript courses can teach you like Hitesh sir does ..........i am glad i found the best playlist and followed it to master the greatest language of internet

  • @jaffercookingsecret697
    @jaffercookingsecret697 2 месяца назад +1

    koi dikkat wali bat hi nhi hai😎😅

  • @deepakbdbg
    @deepakbdbg Год назад

    Aap jaise guru ka aashirvad mil jaie to kch v asambhav nahi ❤

  • @bestahmadff580
    @bestahmadff580 4 месяца назад

    Sir maine to aap ke banane se pahle hi try Kiya banane ko aur main bana bhi Diya
    But aap ka thanks idea ke liye

  • @4120_PRATIKRATHOD
    @4120_PRATIKRATHOD 6 месяцев назад

    31:00 this moment is I know exactly what has happened ->
    Thik if you click the start button multiple times this will dispatch multiple setInterval functions and now if you click the stop button it has the latest/ last setInterval functions reference so that one will stop but since previous once are still there it will continue execution

  • @RagSingh-e2e
    @RagSingh-e2e 7 месяцев назад

    best Series ALL OVER The UNIVERSE, thank you Sir 🙏

  • @rajkiranchaudhary8769
    @rajkiranchaudhary8769 11 месяцев назад +2

    Hello Hitesh sir .. I was wondering whether we have async/await video in this series. It would be great if we could have that as well. Thank you for making such an awesome series.

  • @AnuragKumar-gf1pq
    @AnuragKumar-gf1pq 8 месяцев назад

    Best Async explanation. Best series

  • @Soumya.a923
    @Soumya.a923 6 месяцев назад

    Thankyou Hitesh sir, for giving such indepth series, After learning various courses from udemy and yt. I was not confident in js but after watching this series I have confidence that I can build something from my own! Thankyou so much. ❤

  • @Tech_Life_2.0
    @Tech_Life_2.0 Год назад

    hum Java script ko kaise use karte hein website mein kafi time se RUclips per search kar rahe the lekin ab aapke channel mil gaye ab hum achhe se learn kar lenge thankyou so much sir 🎉🎉🎉🎉

  • @saifulislamshanto2381
    @saifulislamshanto2381 4 месяца назад

    16:48 Task DOne 🤘🤘

  • @MonikaKumari-er4de
    @MonikaKumari-er4de 6 месяцев назад +1

    Thank you sir

  • @adityayambal1756
    @adityayambal1756 8 месяцев назад

    sir best teacher ho aap kya padhate ho concepts acche se clear ho raha hai thank you and please make an series on anguler.js if you can.

  • @VishwasKumar-oq3pb
    @VishwasKumar-oq3pb 5 месяцев назад

    For generating a random color i have used Rgb format and it is like this
    function r(){
    let generate = Math.floor((Math.random()*256 +1))
    return generate
    }
    function generateColor(){
    let color = `rgb(${r()},${r()},${r()})`
    body.style.backgroundColor = color
    }
    start.addEventListener("click",()=>{
    colorChange = setInterval(generateColor,1000)
    console.log(colorChange)
    })
    stop.addEventListener("click",()=>{
    clearInterval(colorChange)
    })

  • @geekguri_tech
    @geekguri_tech 9 месяцев назад

    Great Projects Sir. Really great understanding and deep depth.

  • @BalajeeSingh-ov7mv
    @BalajeeSingh-ov7mv 7 месяцев назад +1

    Lots of love sir

  • @dcsalim4384
    @dcsalim4384 2 месяца назад

    Toda sa complex zarur he but maza agaya 🥲🔥

  • @Sonal-om9gt
    @Sonal-om9gt 3 месяца назад

    Your videos are very very helpful to us. thank you so much sir

  • @vpr17
    @vpr17 9 месяцев назад +2

    Easier way to get hex code:
    let color = "#" + Math.floor(Math.random()*(256*256*256)).toString(16)

  • @girdhar3224
    @girdhar3224 3 месяца назад

    30:00 setting 𝙞𝙣𝙩𝙚𝙧𝙫𝙖𝙡𝙄𝙙 = 𝙣𝙪𝙡𝙡 is mandatory because if we don't do that and by any chance click start button twice then it will get stuck in infinite loop which can never be stopped (can be stopped by reloading page)

    • @-aarohi
      @-aarohi Месяц назад

      but even if i set intervalId = null, then it still get stuck can only be stopped by reloading page

  • @ankitjasiwal_2.0
    @ankitjasiwal_2.0 Год назад +1

    Fatafat pause Kiya aur share aur like Kiya

  • @hrishikeshpawar3341
    @hrishikeshpawar3341 Год назад

    BEST CONTENT FOR JAVASCRIPT

  • @akash__choudhary
    @akash__choudhary Год назад

    awesome, it is the BEST series. even much more better than paid courses.

  • @AkbarAli-bt7xi
    @AkbarAli-bt7xi 7 месяцев назад

    Allhamdulilah I myself have done assignment ❤ love from Pakistan 🇵🇰 🇵🇰 🇵🇰

  • @nikhatansari3310
    @nikhatansari3310 11 месяцев назад +1

    Thank you so much sir 😊 sir please make playlist of node js

  • @faizandarwesh9606
    @faizandarwesh9606 2 месяца назад

    Great lecture. Thanks alot. I just had a query that if a user just click stop button for the very first time in that case intervalId is not assigned any value yet. So what will be the output in my case it gives undefined. So we need to handle that case too. Please provide your feedback on this. Thanks and wishes you great success ahead.