Solution use-the-parseint-function-with-a-radix.english.md (#18746)
* Update use-the-parseint-function-with-a-radix.english.md * Improved JavaScript formatting
This commit is contained in:
		
				
					committed by
					
						 Todd Chaffee
						Todd Chaffee
					
				
			
			
				
	
			
			
			
						parent
						
							1f9e26c7fe
						
					
				
				
					commit
					7b8a6e7385
				
			| @@ -62,6 +62,8 @@ convertToInteger("10011"); | ||||
| <section id='solution'> | ||||
|  | ||||
| ```js | ||||
| // solution required | ||||
| function convertToInteger(str) { | ||||
|   return parseInt(str, 2); | ||||
| } | ||||
| ``` | ||||
| </section> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user