Group 2
Md. Nur-E-Azam – 1512268042
Md. Ashiquer Rahman - 1512454042
Nahian Noshin Nur - 1510798642
Nahian Nakiba Dola – 1520153642
Background and History
TypeScript is a relatively new language. It was launched for public use
in October 2012, as the version 0.8 of the language
It was a result of two years of development at Microsoft, with Anders
Hejlsberg, the lead architect of c#, as well as the creator of Delphi and
Turbo Pascal as contributors
The TypeScript 0.8 was followed by a newer version, the TypeScript 0.9
which was released in 2013 - support for generics
TypeScript 0.9 was succeeded by TypeScript 1.0 in 2014. The second
update for Visual Studio 2013 provides default support for TypeScript.
Introduction
TypeScript is a programming language which was
developed by Microsoft. It is free, open source and
superset of the JavaScript.
Maintained by Microsoft, the language comes with an
addition of class-based object oriented programming, as
well as optional static typing to the JavaScript. It is
possible to create JavaScript applications for client or
server side using the TypeScript.
Domain & Implementation
Evaluation
Readability: In terms of readability, Typescript is
much more easier to read and understand (than
Java Script)
Writability:
Reliability:
Cost:
Advantages
TypeScript simplifies JavaScript code, making it easier to read and debug
TypeScript is open source
TypeScript provides highly productive development tools for JavaScript IDEs and
practices, like static checking
TypeScript makes code easier to read and understand
TypeScript can help us to avoid painful bugs that developers commonly run into
when writing JavaScript by type checking the code
TypeScript code can be compiled as per ES5 and ES6 standards to support the latest
browser
Aligned with ECMAScript for compatibility
TypeScript is a superset of ES3, ES5, and ES6.
Disadvantages
Generally TypeScript takes more time to compile the code
TypeScript does not support abstract classes
Special Features
Functions with optional parameters
Functions with REST parameters
Generics support
Modules support
Supports static typing
Application Domains
Demo Program
function greeter(person) {
return "Hello, " + person;
let user = "Jane User";
document.body.textContent = greeter(user);
Conclusion
When JavaScript was developed it was introduced as a client-side
programming language. When it started growing, the code of JavaScript
became complex and heavy. Because of this, JavaScript was unable to
full fill the requirement of Object-oriented programming language. This
prevents JavaScript from succeeding at the enterprise level as a server-
side technology. Hence, TypeScript was developed by the development
team to bridge this gap.
Reference
https://www.freecodecamp.org/news/when-to-use
-typescript-a-detailed-guide-through-common-scen
arios-b0a57e57905/
https://www.geeksforgeeks.org/difference-betwee
n-typescript-and-javascript/
https://dzone.com/articles/what-is-typescript-and-
why-use-it
https://www.typescriptlang.org/docs/handbook/ty
pescript-in-5-minutes.html