Skip to content

Commit 029a99c

Browse files
committed
chore: updated readme
1 parent 8052f06 commit 029a99c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

‎README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@
7070
- [Math.round](#mathround)
7171
- [JavaScript Integer Max Min](#javascript-integer-max-min)
7272
- [Bitwise operation in JavaScript](#bitwise-operation-in-javascript)
73-
- [x>>y](#xy)
73+
- [Right Shift x>>y](#right-shift-xy)
74+
- [Left Shift x<<y](#left-shift-xy)
7475
- [Mock Interview](#mock-interview)
7576
- [Get the Average value at each level of the tree](#get-the-average-value-at-each-level-of-the-tree)
7677
- [ADT](#adt)
@@ -860,11 +861,19 @@ It is 16 digit number.
860861

861862
## Bitwise operation in JavaScript
862863

863-
### x>>y
864+
### Right Shift x>>y
865+
866+
Moving bit/s towards the right side in binary number.
864867

865868
`x>>y` means `x/2^y` divide x by 2 to the power of y.
866869

870+
### Left Shift x<<y
871+
872+
Moving bit/s towards the left side in binary number.
873+
874+
`4<<2 == 0`
867875

876+
`x<<y` means `x*2^y` multiply x by 2 to the power of y.
868877

869878
## Mock Interview
870879

0 commit comments

Comments
 (0)