Deno Runtime - How to Compile & Run Typescript Code in Deno

in #javascript4 years ago

Learn How to Compile & Run Typescript Code in Deno. In previous post, I explained how to install deno on Windows 10.

Here I am going to explain how to compile & run typescript code in deno.

You can check out the video below.

Process of executing the typescript with the Deno.

  • Install deno
  • Verify the deno on command prompt
  • Write typescript code
  • Save the file with the extension .ts
  • Open command prompt type in deno run filename.ts
  • It converts .ts to .js and then runs the .js code
  • Check the output

This is pretty much the process of the typescript code to be compiled and then run as any other javascript code. Hopefully using the code in the process you can also test it out. And hopefully the install of deno has no issues and your typescript can compile properly.

I hope you like the video. You can support me when you get yourself a Javscript T-shirt.

Do let me know your comments and suggestions.

I'd appreciate the upvote.

Sort:  

As a follower of @followforupvotes this post has been randomly selected and upvoted! Enjoy your upvote and have a great day!

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.027
BTC 60256.67
ETH 2327.64
USDT 1.00
SBD 2.46