Created
          September 6, 2019 05:07 
        
      - 
      
- 
        Save masautt/715c78034f26aa6605ceaad32276b750 to your computer and use it in GitHub Desktop. 
    How to convert a string to a number in JavaScript?
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | console.log(parseInt("8675309 hmu :)")) // --> 8675309 | |
| console.log(parseFloat("3.14 is PI")) // --> 3.14 | |
| // https://gomakethings.com/converting-strings-to-numbers-with-vanilla-javascript/ | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment