I am making a JavaScript calculator,and it (suppose to) converts binary numbers (2) into octal numbers (8). I have done a research on this for a while, and what I found was a bunch of libraries. I don’t want any of them and probably there is a simpler way to do this, but how?
I am making a JavaScript calculator,and it (suppose to) converts binary numbers (2) into
Share
You don’t need a library. Just use the
parseIntfunction and thetoStringmethod: