Get to know the VOID operator and VOID type

Поделиться
HTML-код
  • Опубликовано: 15 июл 2024
  • The void type represents the absence of a return value in TypeScript. Void can also be used as an operator to discard a return type. This can be useful in cases where a Promise is only being used for its side effects, rather than for returning a value.
    My FREE programming apps:
    - apps.apple.com/app/id659282498
    - play.google.com/store/apps/de...
    My FREE TypeScript Course:
    - typescript.tv/
    Timeline:
    00:00 - Intro
    00:25 - The void type
    01:05 - void, null and undefined
    01:52 - Key takeaways
    02:27 - The void operator
    03:28 - Promises with void
    04:07 - Floating Promises
    05:54 - Don't disable ESLint
    06:35 - Outro
    Resources:
    ➜ giphy.com/clips/ralph-data-ya...
    ➜ giphy.com/clips/collin-dog-sp...
    Follow TypeScript TV:
    🌐 typescript.tv
    🐦 / typescripttv
    📺 / typescripttv
    Hashtags:
    #TypeScript #JavaScript #void #tutorial
  • НаукаНаука

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

  • @huzairahmedkhan650
    @huzairahmedkhan650 19 дней назад +1

    Great explanation Sir, It was much needed.

    • @TypeScriptTV
      @TypeScriptTV  19 дней назад

      Happy that you like it! I also made a cool video about generators: ruclips.net/video/DwRS6f-UzaA/видео.html

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

    Operator useless but your work is not. ;)

    • @TypeScriptTV
      @TypeScriptTV  5 месяцев назад +1

      Thanks for your support! Btw. I made an app for programmers: apps.apple.com/app/id659282498