IS JAVASCRIPT AND TYPESCRIPT THE SAME?  If so, then can we replace one with the other? 

we can say that both of these languages help us by providing functionality to a web-project at different levels and in different ways. But the main difference is that JS is ideal for working on a small-scale project where the code is within a few hundred lines while typescript is used to design lengthy, tedious and complex code