The entire first section defines our function that will add the values of x and y that we’ll define in the next line that looks like this. The results of running the app will print out 13.14 (because we added 3.14 to 10) This is great. What about taking input from a user? That’s possible as well as using the parseInt function. You’re on fire!

5m read timeFrom thenewstack.io
Post cover image
Table of contents
Expanding the ‘Hello, World!’ AppAdding Numbers with TypeScript

Sort: