Would like to ask what's the functions of "<<", "<<<", ">>" and ">>>" in javascript, how does it work...? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Would like to ask what's the functions of "<<", "<<<", ">>" and ">>>" in javascript, how does it work...?

23rd Jun 2017, 11:59 PM
Yen
Yen - avatar
2 Answers
+ 3
<< is a zero fill left bit shift operator >> is a signed right bit shift operator >>> is a zero fill right bit shift operator <<< This doesn't exist and will produce an error https://www.w3schools.com/js/js_bitwise.asp
24th Jun 2017, 2:21 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Hi ChaoticDawg, noted with thanks.
24th Jun 2017, 3:59 PM
Yen
Yen - avatar