DEV Community

KIranuknow
KIranuknow

Posted on

1

Javascript to Typescript Tips

Some of the tips in migrating existing JavaScript code to TypeScript.

JavaScript

var name = "test";
Enter fullscreen mode Exit fullscreen mode

TypeScript

//declare fieldName as string
let name: string ;
name = "test";
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Need a better mental model for async/await?

Check out this classic DEV post on the subject.

⭐️🎀 JavaScript Visualized: Promises & Async/Await

async await

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay