Console is More Than Just log

Поділитися
Вставка
  • Опубліковано 18 гру 2024

КОМЕНТАРІ • 28

  • @NeoDragonEWW
    @NeoDragonEWW 4 роки тому +5

    Ahhhhhh. Number 3 has been something I always get stuck on "Why is this logging as [object Object]?". That makes so much sense it was trying to log it as a string. Thanks for that tip!

  • @pinakim11
    @pinakim11 4 роки тому +1

    This is one of the best java script video, pure gold...awesome job

  • @aadil4236
    @aadil4236 4 роки тому +2

    Dude..!! You have no idea how helpful this video was thanks man much appreciated.

  • @maspoetry1
    @maspoetry1 4 роки тому +1

    i reserve 20' a day to watch your videos. it's like seeing a year ahead :-)
    presumably the stack trace has great use when you're learning someone else's code...
    liked and shared

  • @Lyhan24
    @Lyhan24 4 роки тому +2

    Thanks a lot for sharing, console.trace is indispensable tool for troubleshooting. I did not know about console.table. The curly braces looks like ES6 object destructuring. I usually use JSON.stringify, but it can get cumbersome sometimes with circular references.

  • @dorian7215
    @dorian7215 4 роки тому

    Thank you for this video. I had no idea about the function methods included with the console function.

  • @alexburke566
    @alexburke566 4 роки тому +2

    Man you're super teacher and so helpful for us! Thanks a lot.

  • @TheShy007
    @TheShy007 3 роки тому

    Thankyou sir for video tutorials I have started with Javascript playlist as I'm not good with it and it's very helpful really appreciate your efforts for making all this great tutorials playlist.

  • @ta7fiz_watatwir_aldat
    @ta7fiz_watatwir_aldat 4 роки тому +1

    Very interesting informations , Thank you Steve

  • @hagarhamadi2582
    @hagarhamadi2582 Рік тому

    Thats so helpful, and your explanation way is easy to understand, thank you

  • @joaovaz3473
    @joaovaz3473 4 роки тому

    Thanks for another great video! Keep up the good work

  • @paulosimoes1891
    @paulosimoes1891 4 роки тому

    Great video, I always learn so much watching you, thanks!

  • @adityaanand5768
    @adityaanand5768 4 роки тому +1

    Please upload a video about how to use local storage when you have store credentials of multiple users for a sign in, sign up form and then using it when it is needed. It will be very useful.Thank you!
    P.S. - You are an awesome teacher, please keep teaching these useful and cool things❤️

    • @yt-sh
      @yt-sh 4 роки тому

      seconded

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 роки тому

      Please post tutorial requests in the comments here - ua-cam.com/video/LCezax2uN3c/v-deo.html
      I have a tutorial on localStorage here - ua-cam.com/video/hOCYNdgsUfs/v-deo.html

  • @manjeetkumar
    @manjeetkumar 4 роки тому

    Brilliant ! Quite simple Quite useful info. Keep it up.

  • @devstefancho
    @devstefancho 4 роки тому

    Thanks !! you are explanation is very good

  • @PanosAnas7
    @PanosAnas7 Рік тому

    very useful video, thank you very much!

  • @DedicatedManagers
    @DedicatedManagers 4 роки тому

    I find myself often having to console log an object with console.log(JSON.parse(JSON.stringify(myObject))) Because objects are shown In the console with their values at the time you click the down arrow. So if the object had changed since you logged it you’ll get the updated version, not the version at the time of the console.log. Is there a console that makes this easier?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 роки тому

      The console only shows values at the time that you log them. You should go to the Sources tab in the developer tools and use the Watch tool to track variables over time. You can also use breakpoints in the Sources tab to pause execution.

    • @DedicatedManagers
      @DedicatedManagers 4 роки тому

      “The console only shows values at the time you log them.” ... I’m either misunderstanding this or we disagree on this point. If you console log an object, and hover over the little bluish square next to the object in the console log, it will tell you that it’s being evaluated at the time you click to view it.
      The rest makes sense. I Have used breakpoints. I haven’t used The watch tool though, so thanks for that! (Would love to see a video on that!)
      Regardless I appreciate the video and your time to respond!

  • @Ruf4eg
    @Ruf4eg 4 роки тому

    alway nice content

  • @vaniad555
    @vaniad555 4 роки тому

    Thank you for the great content, app.listen(PORT, console.log(`Server running in ${process.env.NODE_ENV} mode on port ${PORT}`)), using express and mongoose, the server is running but not really and I am getting no overload matches this call
    I was getting the data with mongodb but broke the code and after a fix, this is the final error, using yarn instead of npm and just merging to their commands. Any advice will do, thank you.

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  4 роки тому +1

      The second parameter for app.listen needs to be a callback function, not a call to a function.
      app.listen(PORT, function(err){
      //in here you can discover the error and use console.log.
      });

    • @vaniad555
      @vaniad555 4 роки тому +1

      @@SteveGriffith-Prof3ssorSt3v3 Thank you, I knew it, had to read all the docs all over again, and they say what you said. It is someone else's code, I am doing MERN on udemy, got really eager to resolve it, debugging is best way to learn. After 24hr suffer, 4am first youtube video is yours explaining console.log in an amazing way. I took CS50 and you are the first human that makes sense, you have the gift to teach. I am a fan already, hope you do a project, gladly will pay!

  • @chaudharyarun04
    @chaudharyarun04 8 місяців тому

    Great video

  • @zimani7g473
    @zimani7g473 4 роки тому

    🔥♥️

  • @nicholask2829
    @nicholask2829 4 роки тому +1

    First to view and comment!