Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Instant Grammar Checker - Correct all grammar errors and enhance your writing

What's The REAL Secret To First Date Success With a Woman? Click Here To Find Out

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

29,372 questions

38,322 answers

573 users

How to print the bits of an integer in 16 bit format with JavaScript

1 Answer

0 votes
const num = 17801;

console.log(("0000000000000000" + num.toString(2)).substr(-16));






Protect Your Privacy - Download VPN

answered Jan 11 by avibootz
edited Jan 12 by avibootz