# [JavaScript (Node.js)], <s> 39 </s> 38 bytes _Saved 1 byte thanks to @Shaggy_ [JavaScript (Node.js)]: https://nodejs.org <!-- language-all: lang-javascript --> s=>Buffer(s).map(c=>p=p*10+c-48,p=0)|p [Try it online!](https://tio.run/##hcy9CsIwGIXh3asImRI1bb7a3yEF3QRvosRElLYJjXXy3ivSEiEdfMfDw3k0r8bJ4W6frDdXNWkxOVGfRq3VQByNusYSKWor7Bb4TrK03FvB6dtO0vTOtCpqzY1ogiE5pFlelBVGlKI4Rsgvm4Dyn/1HL2ZQHUbfFnrIOFQQurN1Y@ASSLOVOy5h76CcK0KKljxlUMzlq1eP/ev6LjQM8ukD "JavaScript (Node.js) – Try It Online")