Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How is TypeScript different from JavaScript?
Home
Dot Net
How is TypeScript different from JavaScript?
0
votes
asked
Jun 3, 2020
in
Dot Net
by
GeorgeBell
How is TypeScript different from JavaScript?
#typescript
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 3, 2020
by
GeorgeBell
TypeScript is different from JavaScript in the following manner:
SN
JavaScript
TypeScript
1
It was developed by Netscape in 1995.
It was developed by Anders Hejlsberg in 2012.
2
JavaScript source file is in ".js" extension.
TypeScript source file is in ".ts" extension.
3
JavaScript doesn't support ES6.
TypeScript supports ES6.
4
It doesn't support strongly typed or static typing.
It supports strongly typed or static typing feature.
5
It is just a scripting language.
It supports object-oriented programming concept like classes, interfaces, inheritance, generics, etc.
6
JavaScript has no optional parameter feature.
TypeScript has optional parameter feature.
7
It is interpreted language that's why it highlighted the errors at runtime.
It compiles the code and highlighted errors during the development time.
8
JavaScript doesn't support modules.
TypeScript gives support for modules.
9
In this, number, string are the objects.
In this, number, string are the interface.
10
JavaScript doesn't support generics.
TypeScript supports generics.
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: List some features of Typescript?
asked
Jun 3, 2020
in
Dot Net
by
GeorgeBell
#typescript
0
votes
Q: What is the need of TypeScript?
asked
Jun 3, 2020
in
Dot Net
by
GeorgeBell
#dotnet
#typescript
0
votes
Q: What is Typescript language?
asked
Jun 3, 2020
in
Dot Net
by
GeorgeBell
#typescript
0
votes
Q: What is the process called by which TypeScript code is converted into JavaScript code?
asked
Jan 6, 2020
in
Angular
by
sharadyadav1986
#typescript
0
votes
Q: What are the disadvantage of typescript over javascript
asked
Jun 3, 2020
in
Dot Net
by
GeorgeBell
0
votes
Q: Is ASP.NET different from ASP? If yes, explain how?
asked
Sep 18, 2023
in
Dot Net
by
Robin
aspnet
0
votes
Q: How do you use javascript libraries in typescript file in Javascript?
asked
Oct 24, 2023
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: How does TypeScript support optional parameters in function as in JavaScript every parameter is optional for a function?
asked
Mar 23, 2022
in
TypeScript - JavaScript's Superset
by
sharadyadav1986
type-script-functions
0
votes
Q: Does TypeScript supports function overloading as JavaScript doesn't support function overloading?
asked
Mar 23, 2022
in
TypeScript - JavaScript's Superset
by
sharadyadav1986
typescript-function-overloading
0
votes
Q: What are the Differences between TypeScript and JavaScript?
asked
Mar 22, 2022
in
TypeScript - JavaScript's Superset
by
sharadyadav1986
typescript
typescript-frescoplay
javascript-interview-questions
typescript-programming-questions
typescript-practice-problems
typescript-interview-questions-github
typescript-tutorial
typescript-quiz
angular-interview-questions
typescript-interview-questions-and-answers-2022
...