This question already has answers here:
What do ">>" and "<<" mean in Javascript?
(10 answers)
What does the ^ (caret) symbol do in JavaScript?
(5 answers)
What do these JavaScript bitwise operators do?
(3 answers)
What does this symbol mean in JavaScript?
(1 answer)
Closed 8 months ago.
I was going through a small program and i came across this syntax in javascript.
hash = Math.abs((hash << 2) ^ (hash + y))
please what does it mean?
hash was initially 0; i.e hash = 0;
Related
This question already has answers here:
What is the JavaScript >>> operator and how do you use it?
(7 answers)
What do these JavaScript bitwise operators do?
(3 answers)
Closed 12 days ago.
Can anyone Explain me if i doing -
(10>>>2) = 2
(10>>2) = 2
both same then what difference
This question already has answers here:
Optional Chaining in JavaScript [duplicate]
(8 answers)
How does the JavaScript optional chaining(?.) operator works?
(2 answers)
Closed 10 months ago.
What does this mean
doc.data()?.email === auth.currentUser.email
?. <- what does this imply I saw it in a firebase project
This question already has answers here:
What does this symbol mean in JavaScript?
(1 answer)
What's the significant use of unary plus and minus operators?
(2 answers)
Closed 2 years ago.
I have problem with understanding this code. I know what it do, but I dont understand the "+" after return.
function descendingOrder(n) {
return +n.toString().split('').sort().reverse().join('');
}
This question already has answers here:
Pad a number with leading zeros in JavaScript [duplicate]
(9 answers)
How can I pad a value with leading zeros?
(76 answers)
Closed 3 years ago.
I'm not looking for simple template literals, more so the functionalities of String.format from java.
For example,
String.format("%05d",num);
if inputted 14, would output 00014. How could I do this in javascript?
This question already has answers here:
Reference - What does this regex mean?
(1 answer)
Unicode code point escapes in regex literals - Javascript
(1 answer)
Does JavaScript support Unicode ranges above 0xFFFF in regular expressions?
(2 answers)
Closed 4 years ago.
I have encountered an issue when testing a char against a RegExp in JavaScript. The following line of code evaluates to true while it should evaluate to false.
/[\u10500-\u10D25]/.test('A');