Это видео недоступно.
Сожалеем об этом.

Increment & Decrement Operators in JavaScript Part 1 - JavaScript Tutorial 26

Поделиться
HTML-код
  • Опубликовано: 12 авг 2024
  • Notes for You:: JavaScript Increment and Decrement Operators Part 1:
    - are used to increment or decrement a variable value by 1.
    ++ (Increment Operator):
    - is used to increment a variable value by 1
    - Post Increment: variableName ++
    - Pre Increment : ++ variableName
    -- (Decrement Operator):
    - is used to decrement a variable value by 1
    - Post Decrement: variableName --
    - Pre Decrement : -- variableName
    Example Code1:
    var a=10;
    document.write("a=",a); //a=10
    a++; // a=a; a=a+1;
    document.write("a=",a); //a=11
    var a=10;
    document.write("a=",a) // a=10
    ++a; // a=a+1; a=a;
    document.write("a=",a); // a=11
    var a=10;
    document.write("a=",a); // a=10
    a--; // a=a; a=a-1;
    document.write("a=",a); //a=9
    var a=10;
    document.write("a=",a); // a=10
    --a; // a=a-1; a=a;
    document.write("a=",a); //a=9
    =========================================
    Follow the link for next video:
    JavaScript Tutorial 27 - Increment & Decrement Operators in JavaScript - Part 2
    • Increment & Decrement ...
    Follow the link for previous video:
    JavaScript Tutorial 25 - Assignment Operators in JavaScript | JavaScript Assignment Operators
    • JavaScript Assignment ...
    =========================================
    JavaScript Tutorials Playlist:-
    • JavaScript Tutorials
    =========================================
    Watch My Other Useful Tutorials:-
    jQuery Tutorials Playlist:-
    • jQuery Tutorials
    jQuery UI Tutorials Playlist:-
    • jQuery UI Tutorials
    Bootstrap Tutorials Playlist:-
    • Bootstrap Tutorials
    =========================================
    ► Subscribe to our RUclips channel:
    / chidrestechtutorials
    ► Visit our Website:
    www.chidrestechtutorials.com
    =========================================
    Hash Tags:-
    #ChidresTechTutorials #JavaScript #JavaScriptTutorial

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

  • @ChidresTechTutorials
    @ChidresTechTutorials  5 лет назад +1

    SUBSCRIBE, SHARE & SUPPORT:
    ruclips.net/user/chidrestechtutorials
    VISIT & LEARN AT FREE OF COST:
    ​www.chidrestechtutorials.com

  • @shubhamkumarjaiswal4370
    @shubhamkumarjaiswal4370 2 года назад +1

    Thank sir for exaplanation

  • @mrlove2718
    @mrlove2718 4 года назад +3

    And i would like to thank you so much, because the way u explain every single step is excellent if some1 want to learn perfectly they can understand easily the way u explain everything.
    Thank u so much

  • @myrina5115
    @myrina5115 3 года назад +2

    I hope, one day I get to the level of programming, but you're great. So far I have watched so many tutorials, and still could not understand the logic and how it works. But You found the way easily to explain us "the secret".:) You are really the best. Thank you!

  • @muratyuksel8844
    @muratyuksel8844 2 года назад +1

    Teşekürler

  • @mrlove2718
    @mrlove2718 4 года назад +1

    I have a confusion...if pre increment and post increment having same output so where and when to apply post and where to apply pre increment

    • @asifhuda2267
      @asifhuda2267 3 года назад

      They have applications in looping in JavaScript..

  • @akr3machraf807
    @akr3machraf807 3 года назад +1

    Good❤

  • @65189sumon
    @65189sumon 4 года назад +1

    var a = 33;
    a = ++a;
    document.write("++a = ");
    result = ++a;
    document.write(result);
    why output show 35
    and
    var a = 33;
    a = a++;
    document.write("a++ = ");
    result = ++a;
    document.write(result);
    why output show 34

  • @fridaygamer4105
    @fridaygamer4105 5 лет назад +1

    Why using the br tag