top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How TypeScript is Optionally Statically Typed Language?

+1 vote
339 views
How TypeScript is Optionally Statically Typed Language?
posted Nov 22, 2016 by Jdk

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

TypeScript is referred as optionally statically typed, which means you can ask the compiler to ignore the type of a variable. Using any data type, we can assign any type of value to the variable. TypeScript will not give any error checking during compilation.

var unknownType: any = 4;
unknownType = "Okay, I am a string";
unknownType = false; // A boolean.
answer Nov 30, 2016 by Manikandan J
Similar Questions
0 votes

I need to reuse my Javascript module in typescript for my angular application. Can you guide me how to do that ?

0 votes

I Am Just Going To Start Use TypeScript In My HTML Client Project Which Belongs To A MVC Project With A Entity Framework Domain Model Already There. I Want My Two Projects (Client Side And Server Side) Totally Separated As Two Teams Will Work On This... JSON And REST Is Used To Communicate Objects Back And Forth.

Of Course, My Domain Objects On The Client Side Should Match The Objects On The Server Side. In The Past, I Have Normally Done This Manually. Is There A Way To Reuse My C# Class Definitions (Specially Of The POJO Classes In My Domain Model) To Create The Corresponding Classes In Typescript".

...