Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about bitwise-and

Read more about bitwise-and

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - bitwise-and

My code passes all my tests but some how edabit is not approving it

function bitwiseAND(n1, n2) { let a = n1.toString(2).padStart(8, "0"); let b = n2.toString(2).padStart(8, "0"); let x = ""; for (let i = 0; i < 8; i++) { ...
test-img

PAPPI-HS

javascript

bitwise-operators

bitwise-and

bitwise-xor

bitwise-or

Votes: 0

Answers: 1

Latest Answer

Your code is good, the only thing that is missing is to convert the binary to an integer on your return values. Insted of return +x Try return parseInt(x, 2)
test-img

Gass

What does a bitwise AND do with no value infront of it?

I am using Verilog. Say you have the term: & A or ~& A What does this do? Does it just compare it to an all empty array?
test-img

Typo

bit-manipulation

verilog

bitwise-operators

bitwise-and

Votes: 0

Answers: 1

Latest Answer

It performs a bitwise operation on all bits of the operand e.g.: //let x = 4’b1010 &x //equivalent to 1 & 0 & 1 & 0. Results in 1’b0 |x //equivalent to 1 | 0 | 1 | 0. Results in 1’b1 ^...
test-img

fbede

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved