Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

100
Views
javascript bitwise and confusion

Code like this:

let a = 3232237057
let b = 4294967040
let c = a & b
console.log(a.toString(2))
console.log(b.toString(2))
console.log(c.toString(2))

Output is:

11000000101010000000011000000001
11111111111111111111111100000000
-111111010101111111101000000000

I have expected output like:

11000000101010000000011000000001
11111111111111111111111100000000
11000000101010000000011000000000

What is wrong?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!