I am unable to understand a small code piece of JavaScript.
Please help me to know the meaning of the following JavaScript blocks:
x = 2 + a / 30 >> 0;
What is the meaning of “>>” in JavaScript?
D = !0;
What is the value of D?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not only JavaScript it is Shift operator generic to almost all programming languages..
Hereis a link:Example: 5 << 1 becomes 10..
(0101)b becomes (1010)b .. ie, 10 in decimal system