Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
Use parseInt() in the convertToInteger function so it converts the input string str into an integer, and returns it.
Mike Zoe
Programming language:
Javascript
2021-05-26 00:53:51
0
Q:
Use parseInt() in the convertToInteger function so it converts the input string str into an integer, and returns it.
English
Code:
Javascript
2021-04-30 10:54:42
function convertToInteger(str) { return parseInt(str); }
0
Tags
string
use
function
int
con
input
return
into
Related
Use parseInt() in the convertToInteger function so it converts a binary number to an integer and returns it.
New to Communities?
Join the community