{"id":6177,"date":"2018-04-06T05:41:30","date_gmt":"2018-04-06T05:41:30","guid":{"rendered":"https:\/\/9series-blog.staging9.com\/?p=6177"},"modified":"2026-03-03T10:46:03","modified_gmt":"2026-03-03T10:46:03","slug":"typescript-new-invention-to-write-javascript","status":"publish","type":"post","link":"https:\/\/www.9series.com\/blog\/typescript-new-invention-to-write-javascript\/","title":{"rendered":"Typescript-The New Invention to Write Javascript"},"content":{"rendered":"<p style=\"margin-top: 20px\"><a href=\"https:\/\/9series-blog.staging9.com\/wp-content\/uploads\/2018\/04\/Typescript-The-New-Invention-to-Write-Javascript1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2877\" src=\"https:\/\/9series-blog.staging9.com\/wp-content\/uploads\/2018\/04\/Typescript-The-New-Invention-to-Write-Javascript1.jpg\" alt=\"Typescript-The-New-Invention-to-Write-Javascript\" width=\"800\" height=\"500\" \/><\/a><\/p>\n<p>TypeScript is a free and open source programming language developed by Microsoft which helps to write JavaScript code in object oriented approach.<\/p>\n<p style=\"margin-bottom: 0px\"><span style=\"font-weight: bold\">Why TypeScript<\/span><\/p>\n<p>The developers are getting used to the approach object oriented programming concepts in most of the technology\/platforms(c#.Net, Java etc.) which makes it difficult for them to learn and understand JavaScript concepts. The JavaScript doesn\u2019t follow object oriented approach.<\/p>\n<p style=\"margin-bottom: 0px\">TypeScript is defined as a sugar-coated JavaScript. It is considered as a superset of JavaScript.<\/p>\n<p style=\"margin-bottom: 0px\">\n<ul>\n<li>Your JavaScript is TypeScript<\/li>\n<li>Types can be Implicit<\/li>\n<li>Types can be Explicit<\/li>\n<li>Types are structural<\/li>\n<li>Type errors do not prevent your JavaScript emit<\/li>\n<\/ul>\n<p style=\"margin-top: 20px\"><span style=\"font-weight: bold\">Note:<\/span><u> There is no replacement of JavaScript. In order to learn TypeScript, one has to learn the fundamentals of JavaScript(i.e. closure and ifi)<\/u>.<\/p>\n<p>The TypeScript is considered as a <span style=\"font-weight: bold\">\u201ctranspiler\u201d<\/span>, which converts one language to another language.<\/p>\n<p>All JavaScript codes are valid TypeScript codes, one can easily use JavaScript syntax in TypeScript.<\/p>\n<p>The TypeScript is not WYSIWYG. When you see the JavaScript file which is compiled by TypeScript then it may not compile all the codes which we write in a TypeScript file. For eg. You can create the interface in TypeScript and implement its methods to the desired classes. After compiling this code to JavaScript, you cannot see any interface in your JavaScript file. Also all the \u201cprotected\u201d and \u201cprivate\u201d properties are considered as \u201cpublic\u201d properties.<\/p>\n<p>One of the best benefits of TypeScript is that it believes in modular loading. If we create the TypeScript files in multiple modules, one should have module loader like System.JS, Require.JS, Common.JS, etc. These loaders will automatically load the required modules and if there is any dependencies then it will also takes care of the load of those particular dependencies too.<\/p>\n<p style=\"margin-bottom: 0px\"><span style=\"font-weight: bold\">Secure &amp; Strong tools for big scale applications<\/span><\/p>\n<p>While developing JavaScript applications, types enables JS developers to use more productive tools. ie. code refactoring in development.<\/p>\n<p style=\"margin-bottom: 0px\"><span style=\"font-weight: bold\">Benefit of Types<\/span><\/p>\n<p>Benefit of types is that it is optional; and type inference allows couple of type annotations which create difference to static verification of TypeScript code.<\/p>\n<p>Its allows you to define interface between gain insights and software components in existing JS libraries&#8217; behaviour.<\/p>\n<p>9series, as an organization has done TypeScript implementation using asp.net with the help of our <a href=\"https:\/\/www.9series.com\/services\/asp-dot-net-mvc-development.html\" target=\"_blank\" rel=\"noopener\">best .net mvc developers<\/a> for our esteemed client.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TypeScript is a free and open source programming language developed by Microsoft which helps to write JavaScript code in object oriented approach. Why TypeScript The developers are getting used to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":6178,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"dsgo_overlay_header":false,"dsgo_overlay_header_text_color":"","dsgo_overlay_skip_top_bar":false,"_designsetgo_exclude_llms":false,"footnotes":""},"categories":[1429],"tags":[2152,2153,2154,1866,2155,2156,2157],"class_list":["post-6177","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft","tag-best-net-mvc-developers","tag-common-js","tag-javascript-applications-development","tag-javascript-mvc-framework","tag-require-js","tag-system-js","tag-typescript"],"_links":{"self":[{"href":"https:\/\/www.9series.com\/blog\/wp-json\/wp\/v2\/posts\/6177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.9series.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.9series.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.9series.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.9series.com\/blog\/wp-json\/wp\/v2\/comments?post=6177"}],"version-history":[{"count":1,"href":"https:\/\/www.9series.com\/blog\/wp-json\/wp\/v2\/posts\/6177\/revisions"}],"predecessor-version":[{"id":6179,"href":"https:\/\/www.9series.com\/blog\/wp-json\/wp\/v2\/posts\/6177\/revisions\/6179"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.9series.com\/blog\/wp-json\/wp\/v2\/media\/6178"}],"wp:attachment":[{"href":"https:\/\/www.9series.com\/blog\/wp-json\/wp\/v2\/media?parent=6177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.9series.com\/blog\/wp-json\/wp\/v2\/categories?post=6177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.9series.com\/blog\/wp-json\/wp\/v2\/tags?post=6177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}