+ 5
What's the difference between TypeScript and JavaScript, and what's their purpose?
19 ответов
+ 6
TypeScript is a syntactic superset of JavaScript which adds static typing.
This basically means that TypeScript adds syntax on top of JavaScript, allowing developers to add types.
Found out more here:
https://www.w3schools.com/typescript/typescript_intro.php
+ 4
Chris Coder I believe in the potential of the learners, and I would like to see them exploring it according to their current skills first... My worry is that we just tell them what they already know due to too broad formulation of the question.
+ 3
Hey Lisa ,
I agree with what you said, but I've noticed that some folks are just comfortable using the app and don't want to leave it. Plus, searching with search engines isn't always easy, even though Google tries to make it simple. All those results can be confusing and overwhelming, especially if you're new to it. Remember, this is a learning platform, and some people are just starting out. They might feel lost and unsure about all the information and new experiences. So, my goal is to give them the answers they need right away and then offer some ideas on how to improve. I think it's important for us to be like guides, helping people find their way without criticism.
+ 3
Yes, you can view it as an extension: It is Javascript – but with types. The browsers do not interpret Typescript – you have to transpile your Typescript to Javascript.
+ 3
The browser executes Javascript, no matter if you write your code in Javascript or Typescript.
What do you mean by "effective"?
+ 2
What have you already found out in your own research? At which point are you stuck?
+ 2
No, i'm just questioning those code languanges.
+ 2
I have kinda mastered JS tho, and i still don't know what TS is
+ 2
But you have tried to find out what Typescript is? So there must have been anything about the explanation that you found confusing? What was it?
+ 2
Well, not really. I just wanted to know what TS is. I'm just curious.
+ 2
I looked up "what is typescript" here:
https://www.sololearn.com/discuss/2588444/?ref=app
https://www.sololearn.com/discuss/2743602/?ref=app
https://www.sololearn.com/discuss/2539098/?ref=app
https://www.sololearn.com/discuss/2658391/?ref=app
https://sololearn.com/compiler-playground/W0uW3Wks8UBk/?ref=app
+ 2
But that is what everyone would find with a 30-seconds google search. So I am still wondering what the actual question is?
+ 2
Lisa me too. But I'm still trying to figure out how skilled they currently are. I need them to give me some feedback so I can help them better. I want to encourage them to jump in and ask more questions about their topic until they feel clear about it. For instance I would ask “what are types” to further my knowledge if i was still unsure.
+ 2
So Typescript just an extension to JS. Is that true?
+ 2
Sorry i took a long time to respond
+ 2
So which is more effective. JS or TS?
+ 2
Carbon dioxide TypeScript just throws errors when types don't match. JS doesn't, I guess this could speed up your coding so you're not hunting for issues later. There are various other additions added... It is useful but its not necessary.
+ 1
I believe it's TS, but I'm not sure.
+ 1
JavaScript is great for quick, flexible coding, while TypeScript is better for building larger, more complex applications with fewer runtime errors due to its type system.