No video

Bitwise Operators in JavaScript - JavaScript Tutorial 29

  Рет қаралды 9,454

ChidresTechTutorials

ChidresTechTutorials

Күн бұрын

Notes for You:: Bitwise Operators in JavaScript - JavaScript Tutorial 29
- 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
• Special Operators in J...
Follow the link for previous video:
JavaScript Tutorial 28 - Binary Number System Versus Decimal Number System
• Binary Vs. Decimal Num...
=========================================
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:-
• Bootstrap4 Tutorials
=========================================
► Subscribe to our KZfaq channel:
/ chidrestechtutorials
► Visit our Website:
www.chidrestec...
=========================================
Hash Tags:-
#ChidresTechTutorials #JavaScript #JavaScriptTutorial

Пікірлер: 47
@ChidresTechTutorials
@ChidresTechTutorials 5 жыл бұрын
SUBSCRIBE, SHARE & SUPPORT: kzfaq.info VISIT & LEARN AT FREE OF COST: ​www.chidrestechtutorials.com
@VarunCreations
@VarunCreations 3 жыл бұрын
Finally i understood the bitwise operators 💯🙏. Your teaching skills are 💯. Best teacher with a lot of patience.
@ChidresTechTutorials
@ChidresTechTutorials 3 жыл бұрын
Thank you
@jcltradingcompany3558
@jcltradingcompany3558 7 жыл бұрын
Very well explained. Its crystal clear. Easy to understand due to the way you have explained. Thumbs up
@ChidresTechTutorials
@ChidresTechTutorials 7 жыл бұрын
Thank you!!!
@mo.ali.
@mo.ali. 6 жыл бұрын
very well explained
@VISHALYADAV-vq1pp
@VISHALYADAV-vq1pp 6 жыл бұрын
Well explained sir
@veeraratna
@veeraratna 6 жыл бұрын
Thanks
@sezzario
@sezzario 2 жыл бұрын
Great teacher, thanks!
@ChidresTechTutorials
@ChidresTechTutorials 2 жыл бұрын
You are welcome.
@wEbCoAdEr
@wEbCoAdEr 6 жыл бұрын
Well explained sir. Thanks a lot.
@saimairamkhan
@saimairamkhan Жыл бұрын
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 Жыл бұрын
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.
@pretzshiva
@pretzshiva 6 жыл бұрын
Good job!
@mansoorahmad822
@mansoorahmad822 2 жыл бұрын
fantastic sir
@ChidresTechTutorials
@ChidresTechTutorials 2 жыл бұрын
Thank you. Please do subscribe and share
@DuniaNazar
@DuniaNazar 2 жыл бұрын
Awesome class
@ChidresTechTutorials
@ChidresTechTutorials 2 жыл бұрын
Thank you. Please do subscribe share and support.
@boadumichaelangelo7726
@boadumichaelangelo7726 4 жыл бұрын
Bravo senior man thanks a lot
@munkhfitness
@munkhfitness 5 жыл бұрын
Well done!
@kanishkasampath4811
@kanishkasampath4811 Жыл бұрын
🔥🔥🔥
@ChidresTechTutorials
@ChidresTechTutorials Жыл бұрын
Thank you. For more videos please do subscribe share and explore our KZfaq channel.
@vaghelapooja1690
@vaghelapooja1690 3 жыл бұрын
Thank you very much.... Perfect video at perfect time😊😊😊😊
@ChidresTechTutorials
@ChidresTechTutorials 3 жыл бұрын
Most welcome.
@iamdanyaal
@iamdanyaal 2 жыл бұрын
Thank You Sir
@ChidresTechTutorials
@ChidresTechTutorials 2 жыл бұрын
Most welcome. Keep learning, keep coding & keep sharing !!!
@Jananesh251
@Jananesh251 5 жыл бұрын
It's very useful,Thanks Sir.
@paul_M007
@paul_M007 6 жыл бұрын
thank you!. Well explained
@Aziz-kw6ct
@Aziz-kw6ct Жыл бұрын
very useful , thanks a lot for such a content , it helped me alot.
@ChidresTechTutorials
@ChidresTechTutorials Жыл бұрын
You are welcome. Please do subscribe share and support.
@wasikhattakofficial
@wasikhattakofficial 5 жыл бұрын
Very well explained, thanks!
@arisbakhan
@arisbakhan Жыл бұрын
sir can you explain unsigned right shift pls ? and thankyou for this great tutorial
@ChidresTechTutorials
@ChidresTechTutorials Жыл бұрын
👍
@PakArchives
@PakArchives 4 жыл бұрын
Good Explanation! Thank you very much
@ChidresTechTutorials
@ChidresTechTutorials 4 жыл бұрын
Most welcome. Make sure you share with your friends and help them in learning at free of cost. Keep learning, keep coding & keep sharing !!!
@taliafayaz3597
@taliafayaz3597 5 жыл бұрын
thank you this was so great!
@sujandaku15
@sujandaku15 4 жыл бұрын
Exclusive Nor can be say as NAND . In college NAND gate was there
@voidchannel3388
@voidchannel3388 2 жыл бұрын
May I request you not to run your lecture message on screen which obstructs to see the code properly.Thank you.
@ChidresTechTutorials
@ChidresTechTutorials 2 жыл бұрын
Click on captions button available under every KZfaq video.
@vamsikrishna4972
@vamsikrishna4972 10 ай бұрын
sir i am poor in maths sir is it necessary to be good in maths to learn javascript and react js???????
@ChidresTechTutorials
@ChidresTechTutorials 10 ай бұрын
Basic math is required.
@rajasekhar5135
@rajasekhar5135 4 жыл бұрын
Really nice bro vedios but y dont u make advanced conecpts also
@ChidresTechTutorials
@ChidresTechTutorials 4 жыл бұрын
Raja Sekhar : For sure will do it
@rajasekhar5135
@rajasekhar5135 4 жыл бұрын
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 4 жыл бұрын
@@rajasekhar5135 Will definitely complete the series
@prabu2778
@prabu2778 4 жыл бұрын
16>>5 ? Will it come in decimal ?
@irakli4797
@irakli4797 4 жыл бұрын
16/32=1/2=0.5
Special Operators in JavaScript - JavaScript Tutorial 30
16:29
ChidresTechTutorials
Рет қаралды 4,1 М.
eval() Function in JavaScript - JavaScript Tutorial 19
18:43
ChidresTechTutorials
Рет қаралды 10 М.
what will you choose? #tiktok
00:14
Анастасия Тарасова
Рет қаралды 7 МЛН
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 19 МЛН
JavaScript Bitwise Operators
9:26
Programming with Mosh
Рет қаралды 100 М.
Bitwise Operators in JavaScript (Hindi)
7:34
Geeky Shows
Рет қаралды 52 М.
document.write() in JavaScript - JavaScript Tutorial 08
19:48
ChidresTechTutorials
Рет қаралды 13 М.
How to make Simple layout using HTML and CSS
11:03
CodeWith_HKS
Рет қаралды 3,7 М.
JavaScript in Half an Hour (Without jQuery!)
31:52
LearnWebCode
Рет қаралды 858 М.
JavaScript Higher Order Functions & Arrays
34:56
Traversy Media
Рет қаралды 983 М.