Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert string to integer:

<script>
  
    function convertStoI() {
        var a = "100";
        var b = parseInt(a);
        document.write("Integer value is" + b);
        var d = parseInt("3 11 43");
        document.write("</br>");
  
        document.write('Integer value is ' + d);
  
    }
convertStoI(); 
</script>
Source by programmers.co.kr #
 
PREVIOUS NEXT
Tagged: #convert #string
ADD COMMENT
Topic
Name
4+5 =