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

Code Example 1

function my_function(my_param) {
  console.log('do something');
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