Created
April 6, 2017 05:15
-
-
Save anonymous/76e2cf8faf76b81f9494814b7229ed26 to your computer and use it in GitHub Desktop.
3.5 Zero Dark Thirty created by smillaraaq - https://repl.it/Gx3O/2
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
| function removeZero(arg){ | |
| debugger; | |
| var argToString=arg.toString(); | |
| var argToArray=argToString.split(""); | |
| while(argToArray.indexOf("0")>=0){ | |
| argToArray.splice(argToArray.indexOf("0"), 1); | |
| } | |
| argToString=argToArray.join(""); | |
| arg=Number(argToString); | |
| console.log(arg); | |
| } | |
| removeZero(602.23); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment