Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
Use parseInt() in the convertToInteger function so it converts a binary number to an integer and returns it.
Chrissy
Programming language:
Javascript
2021-07-09 09:13:29
0
Q:
Use parseInt() in the convertToInteger function so it converts a binary number to an integer and returns it.
srinivas
Code:
Javascript
2021-06-06 14:20:47
function convertToInteger(str) { return parseInt(str, 2); }
0
Tags
number
use
function
int
binary
con
return
Related
Use parseInt() in the convertToInteger function so it converts the input string str into an integer, and returns it.
New to Communities?
Join the community