murali chowhanforChowhan's blogreactonme.hashnode.netยทMar 15, 2023Write a javascript program to count consecutive once in binary.?let n = 15; let count = 0; while (n != 0) { n = n & n << 1 count++ } console.log(count)3 likesJavaScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.