Bitwise Operators JavaScript

Sdílet
Vložit
  • čas přidán 10. 03. 2020
  • Bitwise Operators , And, OR , exclusive OR ( XOR ) , NOT , Zero fill left shift , Signed right shift , Zero fill right shift in JavaScript
    #bitwise #operator #javaScript
    ★★E-degree to do with Eduonix★★ ( Apply coupon - "TECH20" to get 20% off!)
    Full-stack JavaScript E-degree- bit.ly/2Gtyx5F
    The Complete Web Development Tutorial Using React and Redux - bit.ly/37AMfzh
    Projects in React Native: Learn By Building Real World Apps - bit.ly/2tNVii1
    *My Udemy Courses
    www.udemy.com/js-masterclass/
    www.udemy.com/course/react-ho...
    Follow me for technology updates
    * / techsith
    * / techsith
    * / techsith1
    * / 13677140
    * / patelhemil
    Help me translate this video.
    * czcams.com/users/timedtext_cs_...
    Note: use translate.google.com/ to translate this video to your language. Let me know once you do that so i can give you credit. Thank you in advance.
  • Věda a technologie

Komentáře • 50

  • @liveandlearn11
    @liveandlearn11 Před 11 měsíci

    Your tutorial broke through my mental block on Bitwise Operators. Thank you for making it so easy to understand.

  • @paschalynukwuani6930
    @paschalynukwuani6930 Před rokem +1

    You are always the best. Thank you for zooming your screen to aid your viewers in seeing the code better.

  • @lend7107
    @lend7107 Před rokem +1

    Great video! you simplified what MDN Docs had me scratching my head at. Earned a subscriber.

  • @bluescanfly1981
    @bluescanfly1981 Před 4 lety +4

    Great stuff.. One little note: "Binary operator" refers to arity - that it uses 2 operands not that the operands are in binary. There are also ternary (?:) and unary operators (++) . The operators we're talking about are logical / Boolean operators - they're often used interchangeably, but some materials make the distinction

  • @BrasilEmFatos
    @BrasilEmFatos Před 3 lety

    Man, THANK YOU VERY MUCH! I finally understood this, dude! I'm reading the book Cracking the Coding Interview and one problem there has two different implementations. One of them has bitwise operation. You freaking saved me!

  • @maskman4821
    @maskman4821 Před 4 lety +1

    thank you for this tutorial, I have learned something !!!

  • @elenduchinazo2301
    @elenduchinazo2301 Před rokem

    thank you so much. this is a well detailed video

  • @ifeoluwasegundaystar9786

    thank you for this!

  • @isratjaman8921
    @isratjaman8921 Před 2 lety

    thank you! thank you! thanks a million.

  • @216syed
    @216syed Před rokem

    Great explanation!!

  • @bilaljohn7372
    @bilaljohn7372 Před 4 lety

    Awesome as always 👌👌👌

  • @felipemenesesdittel6799

    THANKS!

  • @explore_with_buddha
    @explore_with_buddha Před rokem

    Well explained

  • @srinumajji501
    @srinumajji501 Před 4 lety

    Thanks Sir😀 for the video

  • @krisnarusdiono1304
    @krisnarusdiono1304 Před 3 lety +1

    tbh sir i love the way you explain it to me ... i wish you would share your knowledge to us

  • @nima_hkh
    @nima_hkh Před 4 lety

    I really appreciate you. Thanks a lot

    • @Techsithtube
      @Techsithtube  Před 4 lety

      You are very welcome! Thanks for watching!

  • @hamidrezakazemi7746
    @hamidrezakazemi7746 Před 4 lety +1

    thanks

  • @TheCodingOdyssey
    @TheCodingOdyssey Před 3 lety

    would have been nice to see some applications as well, if one just sees how something works, but no real world application, one is bound to forget it. Thanks for the video though!

  • @duelgamerz2666
    @duelgamerz2666 Před 4 lety

    excellent explanation of the topic

    • @Techsithtube
      @Techsithtube  Před 4 lety

      Glad it was helpful Ruchika! Thanks for watching!

  • @riyastir
    @riyastir Před 3 lety +1

    It's very useful

  • @IvanHaha
    @IvanHaha Před 4 lety +7

    The first application that came to my mind was checking if a number is odd or even with:
    `let isOdd = number & 1 ? true : false;`

    • @maskman4821
      @maskman4821 Před 4 lety

      translation: if (number & 1) is true (equals 1), then isOdd is an odd number, or it is an even number !!!

    • @Techsithtube
      @Techsithtube  Před 4 lety +1

      That is a very simple and elegant example of how to use bit-wise operators in a real application. Thanks for sharing!

  • @sumitmobiotics3161
    @sumitmobiotics3161 Před 4 lety

    thanks for your video. create a video about how to create mini project , with good coding style with vue js

  • @ArjunSingh-oo1mh
    @ArjunSingh-oo1mh Před 4 lety +1

    concept is clear no doubt, can you please give a real world example or any algorithm where we can use it.
    Thanks

    • @Techsithtube
      @Techsithtube  Před 4 lety

      Arjun , here is a huge list of algorithms that you can solve using bitwise operators. www.geeksforgeeks.org/bitwise-algorithms/

  • @nadaing
    @nadaing Před 2 lety

    alright techsith, I get it and I did learn something new, thank you. it reminds me of some Logic problems I've looked at before... but I can't help to wonder (as a new programmer) why? why so much sweet number logic? Wasn't binary enough in the first place? also, I'll gladly translate your video to spanish if nobody has already.

  • @bikisaha2992
    @bikisaha2992 Před 4 lety

    Hi! please help me to convert this array var [-1, 0, 12, 5, -23] to [1, 0, -12, -5, 23] without using loop.

  • @loveneetsingh820
    @loveneetsingh820 Před 4 lety

    i am stuck on server-side rendering can anyone help me?

  • @saisagarsharma
    @saisagarsharma Před 3 lety

    Can u pls give more real world examples in javascript for this

  • @maskman4821
    @maskman4821 Před 4 lety +1

    The best example is to tell an odd or even number :
    getEvenOrOddNumber(68) // output : 68 is Even number
    getEvenOrOddNumber(73) // output : 73 is Odd number
    function getEvenOrOddNumber(num) {
    let temp = num & 1 ? true : false
    if (temp) console.log(`${num} is Odd number`)
    if (!temp) console.log(`${num} is Even number`)
    }

    • @Techsithtube
      @Techsithtube  Před 4 lety +1

      Stephen, thanks for sharing , this is a great example.

    • @dtho6231
      @dtho6231 Před 4 lety

      @@Techsithtube I always use these whenever making a card or board game. You can have the first for bits represent the value and the last 4 the suit. They are really useful whenever you want to encode anything. It is actually faster and way easier to manipulate then making any type of object or something similar a shame people really underestimate just how useful and imo better using bitwise operators are to encode things like cards, gameboards, and many other things.

  • @diwakarprasad2835
    @diwakarprasad2835 Před 4 lety

    Other than video tutorials what will be the best websites to learn javascript and new features ofJavascript?

    • @Techsithtube
      @Techsithtube  Před 4 lety +1

      mozilla has a great archive called mdn , it can get bit complex but its a great place to learn js.

  • @subham-raj
    @subham-raj Před 4 lety +5

    *If you are a competitive programmer then you will know about this*

    • @Daniel_WR_Hart
      @Daniel_WR_Hart Před 4 lety

      I've seen leetcode solutions where they did some kind of black magic using |

  • @GaneshKumar-fv2cg
    @GaneshKumar-fv2cg Před 4 lety

    SIr - Please post on GraphQL if possible

    • @Techsithtube
      @Techsithtube  Před 4 lety +2

      Ganesh, Yes I am actually focused on graphQL recently. Will creating tutorials on it soon. Thanks for the suggestion.

  • @rajabmuhamedrajab5128
    @rajabmuhamedrajab5128 Před 3 lety

    left shift And Right shift

  • @yqang2904
    @yqang2904 Před 4 lety +1

    Lol. You could have put in the correction earlier. I was staring at the '&' and trying to see how is that different from the AND operator '&'

    • @Techsithtube
      @Techsithtube  Před 4 lety +2

      YQ, after I edited the video I realize the mistake, I am glad that I caught it while reviewing it . I hope It was clear after the correction. sorry about that.

    • @yqang2904
      @yqang2904 Před 4 lety +1

      @@Techsithtube that is alright. I just had a good laugh

  • @olehsavchuk
    @olehsavchuk Před 4 lety

    The tons of application of this complicated subject is left untold. Will not bother learning bitwise operators. On interview will say it's out of scope of real world application and ask to explaine one if interviewer will dissagree.

  • @nareshbhati7527
    @nareshbhati7527 Před 3 lety

    Very basic tutorial, not mentioned the real use cases of these.