I guess this has something to do with binary numbers but I have not been able to find anything explaining why, most likely because I don't know what to search for. I have the following code. I pass in a number parameter of 0111 and inside the function body it logs the number 73. Im just trying to learn why. Linked resources with explanation would be nice. Thanks.
function whatTheHecksGoingOn(num) {
console.log(num)
}
whatTheHecksGoingOn(0111);