JavaScript Hoisting Explained Simply

Поделиться
HTML-код
  • Опубликовано: 20 фев 2023
  • JavaScript Hoisting Explained Simply
    Linkedin: / teddy-smith-015ba61a3
    Website: www.teddysmith.io
    Github: github.com/teddysmithdev
  • ХоббиХобби

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

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

    Interesting behavior. Always fun to learn what happens in the compiler, even if it's unlikely to be of use in most applications

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

    Well explained! Thanks bro 🫂

  • @DavidMares-dc3yk
    @DavidMares-dc3yk Год назад

    Hello Teddy, one question. Do you have a learning rutine? how do you learn new concepts?

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

      Basically, I find examples online and apply things that are relevant to me. So if I'm following a tutorial on React, instead of building a todo list, I will make it a running list.

    • @DavidMares-dc3yk
      @DavidMares-dc3yk Год назад +1

      @@TeddySmithDev Oh ok thank you. So learning things that you can actually apply to you.
      that makes sense. For example, i learned about middlewares in .NET 6 web api because i did not want to get the error log in swagger
      and then after some research i found this..
      public async Task InvokeAsync(HttpContext context, RequestDelegate next)
      {
      try
      {
      await next(context);
      }
      catch (Exception e)
      {
      _logger.LogError(e, e.Message);
      await HandleExceptionAsync(context, e);
      }
      }