How to convert string 123 to integer value 123 in js
A method to convert the string 123 into the integer value 123 in js. varstr=123. varnum=(int)str. B.varstr=123. varnum=str.parseInt(str). C.varstr=123. varnum=parseInt(str). D.varstr=123. varnum=Integer.parseInt(str).