Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 15, 2022 10:43 am GMT

Exploring TypeScript

According to the typescript website

"TypeScript is JavaScript with syntax for types.

TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale."

That's all that does mean. In this case, no matter what you're working with, like javascript, react, angular or etc., that concerns javascript, you gotta go with typescript. It saves time and makes you more confident in finding bugs and errors.

It has some excellent capabilities, like a throwing compiling error. It continuously monitors your code, whether you edited it or not; if edited, what is the type issue and many more things.
Typescript is really easy to learn. It is a superset of javascript. That's all that it says, meaning it can hold all the javascript valid code along with its features.

In javascript, we define a variable like

const abc = "Hello world!"

But in typescript, we have to define its type, whether it is a string, number, etc.

const abs:string = "Hello world!"

To be continued.


Original Link: https://dev.to/mhasancy/exploring-typescript-d3j

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To