Jahil tweets🥀🖤 Posted on Apr 28, 2021 • Edited on Apr 28, 2021 Can anyone explain! #codereview #vscode Can anyone explain me why we use this 2 in the code and if i change this 2 with anything else i get an error what is that?? Top comments (1) Subscribe Submit Preview Dismiss Collapse Expand michaelfiber michaelfiber michaelfiber Follow TypeScript/Node.js dev on Linux. Location United States Work CTO Joined Jul 29, 2019 • May 4 '21 Dropdown menu Copy link Hide The 0b prefix indicates that its a binary number. The int() command expects the second parameter to be the base of the number in the string. The base for a binary number is 2. Code of Conduct • Report abuse
Top comments (1)
The 0b prefix indicates that its a binary number. The int() command expects the second parameter to be the base of the number in the string. The base for a binary number is 2.