JavaScript vs typescript which is better..?

Dilanka Nandana
1 min readMar 1, 2021

--

What is JavaScript…?

JavaScript is interpreted, multi-paradigm, single threaded, dynamic language, and object oriented. That used to create interactive webpages. JavaScript was created by Netscape Communications Corporation programmer Brendan Eich in 1995 but it was officially released in 1996. This language was used to create client-side implementations but now its user for server side as well. JavaScript has similar syntax to Java programming language. JavaScript runs in web browser like chrome V8 engine besides there’s many none browser environments like Node.Js, Titanium (similar to Node.Js). “.js” is the extension of JavaScript file.

What is TypeScript…?

This is pure object-oriented open-source language that build by using JavaScript. This programming language was created by Microsoft in 2012. Main objective of creating typescript is to develop large applications. TypeScript is used at both client and server side, but typescript is needs to be complied (compiled language) into JavaScript. “.ts” is the file extension of typescript file. Typescript provides optional static typing, classes, interface, and inheritance.

Conclusion

JavaScript is easy to learn for starter. If you are thinking doing a project if the project is small JavaScript is the best choice, but project is bigger TypeScript is better. TypeScript developers have more salary than JavaScript developers.

--

--

No responses yet