JavaScript Ternary Operator | Ultimate Guide

Поделиться
HTML-код
  • Опубликовано: 7 ноя 2024

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

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

    Very simple and clear explanation of Ternary Operator. Can't wait for the next video. Thank you!

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

      I am really glad to hear that Jon Jones!
      Thank you so much!

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

    Fun fact: in Js you do not have to use semicolon at the end lf the line!

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

      well , while technically you may not need to add semicolons at the end of the statements, but this is a good practice to add them.
      besides , in a real project we should add semicolons because if we don't specify the end of statements, then we will get either different errors or unexpected behaviors when we Minify our code.
      so considering the Minification process , you should add semicolons .
      I hope I could clarify it a little.
      thank you so much for your comment!