JavaScript Bitwise Operators | Bitwise Operators in JavaScript - JavaScript Tutorial 29

Поделиться
HTML-код
  • Опубликовано: 24 фев 2017
  • Notes for You:: JavaScript Bitwise Operators
    - are used to perform operations on bits (i.e. 0s and 1s)
    - convert the given decimal number(s) to their binary equivalent number, and then they perform the operations on bits of the converted binary equivalent number(s) and return the result as decimal number.
    & (Bitwise AND Operator):
    - If both LHS and RHS are 1 then the result will be 1, in all other cases result will be 0.
    | (Bitwise OR Operator):
    - If both LHS and RHS are 0 then the result will be 0, in all other cases result will be 1.
    ^ (Bitwise Exclusive OR Operator):
    - If both LHS and RHS are same then the result will be 0, otherwise the result will be 1.
    ~ (Bitwise complement Operator):
    - If the given operand is positive integer, then add 1 and change the sign.
    - If the given operand is negative integer, then subtract 1 and change the sign.
    << (Bitwise Left Shift Operator):
    - Shifts the bits of first number to the left by number of positions indicated by second number.
    - firstNumber * pow(2, secondNumber).
    >> (Bitwise Right Shift Operator):
    - Shifts the bits of first number to the right by number of positions indicates by second number.
    - firstNumber / pow(2, secondNumber).
    Example Code:
    document.write("Bitwise Operators");
    document.write(1 & 1); // 1
    document.write(0 | 0); // 0
    document.write(1 ^ 0); // 1
    document.write(2 & 5); // 0
    document.write(2 | 5); // 7
    document.write(2 ^ 2); // 0
    document.write(~5); // -6
    document.write(~(-3)); // 2
    document.write(1<<4); // 16
    document.write(64>>2); // 16
    Note:
    - replace < with less-than symbol.
    - replace > with greater-than symbol.
    =========================================
    Follow the link for next video:
    JavaScript Tutorial 30 - Special Operators in JavaScript | JavaScript Special Operators
    • JavaScript Special Ope...
    Follow the link for previous video:
    JavaScript Tutorial 28 - Binary Number System Versus Decimal Number System
    • Binary Number System V...
    =========================================
    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

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

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

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

  • @VarunCreations
    @VarunCreations 3 года назад +3

    Finally i understood the bitwise operators 💯🙏. Your teaching skills are 💯. Best teacher with a lot of patience.

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

    Thank you very much.... Perfect video at perfect time😊😊😊😊

  • @jcltradingcompany3558
    @jcltradingcompany3558 7 лет назад +3

    Very well explained. Its crystal clear. Easy to understand due to the way you have explained. Thumbs up

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

    Great teacher, thanks!

  • @pretzshiva
    @pretzshiva 6 лет назад +2

    Good job!

  • @wEbCoAdEr
    @wEbCoAdEr 6 лет назад +2

    Well explained sir. Thanks a lot.

  • @saimairamkhan
    @saimairamkhan Год назад +2

    really appreciate ur teaching, presentation and explanation skills in the video, the best explanation on youtube. kindly make a course on react JS framwork, if it is available on udamy, then plz share me the link to purchase, or else if you take paid class then too, i'm ready to study

    • @ChidresTechTutorials
      @ChidresTechTutorials  Год назад +1

      Thank you for the appreciation Saima Iram Khan. Sorry I dont have any course on react JS at present. Be in touch once I create a course on react JS for sure will inform you. Do share and recommend our channel with students who are seeking for knowledge at free of cost.

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

    Bravo senior man thanks a lot

  • @VISHALYADAV-vq1pp
    @VISHALYADAV-vq1pp 6 лет назад +2

    Well explained sir

  • @mo.ali.
    @mo.ali. 6 лет назад +2

    very well explained

  • @kanishkasampath4811
    @kanishkasampath4811 Год назад +1

    🔥🔥🔥

    • @ChidresTechTutorials
      @ChidresTechTutorials  Год назад +1

      Thank you. For more videos please do subscribe share and explore our RUclips channel.

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

    fantastic sir

  • @munkhfitness
    @munkhfitness 5 лет назад +2

    Well done!

  • @Aziz-kw6ct
    @Aziz-kw6ct Год назад

    very useful , thanks a lot for such a content , it helped me alot.

  • @veeraratna
    @veeraratna 6 лет назад +2

    Thanks

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

    Awesome class

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

    Very well explained, thanks!

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

    It's very useful,Thanks Sir.

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

    thank you this was so great!

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

    thank you!. Well explained

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

    Thank You Sir

  • @arisbakhan
    @arisbakhan Год назад +1

    sir can you explain unsigned right shift pls ? and thankyou for this great tutorial

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

    Good Explanation! Thank you very much

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

      Most welcome. Make sure you share with your friends and help them in learning at free of cost. Keep learning, keep coding & keep sharing !!!

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

    Exclusive Nor can be say as NAND .
    In college NAND gate was there

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

    Really nice bro vedios but y dont u make advanced conecpts also

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

      Raja Sekhar
      : For sure will do it

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

      Really nice bro but anni concepts chappintay bagundu ani na opinon chala mandi chaysaru vedios draw back okkatay concepts anni cover chayakapovadam and me antha clear ga laykapovtam

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

      @@rajasekhar5135 Will definitely complete the series

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

    sir i am poor in maths sir is it necessary to be good in maths to learn javascript and react js???????

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

    May I request you not to run your lecture message on screen which obstructs to see the code properly.Thank you.

  • @prabu2778
    @prabu2778 4 года назад

    16>>5 ?
    Will it come in decimal ?