Check out example codes for "typescript vs javascript". It will help you in understanding the concepts better.

Code Example 1

JavaScript:
function my_function(my_param) {
  console.log('do something');
}
TypeScript:
function my_function(my_param: any) {
  console.log('do something');
}

Code Example 2

They are really almost the same theres not the same param types like
JAVASCRIPT is function myFunction(param)
while typescript is
function myFunction(the_param: something)

Code Example 3

JavaScript is a scripting language which helps you create interactive web pages whereas Typescript is a superset of JavaScript. Typescript code needs to be compiled while JavaScript code doesn't need to compile. Typescript supports a feature of prototyping while JavaScript doesn't support this feature.

Learn ReactJs, React Native from akashmittal.com