At my school the students learn some very basic javascript, and a while ago it was decided to expand on that (by teaching nodejs).
by "basic", I mean that we only teach html manipulation through JS.
We have two options for going about it:
- Just teach javascript (es6 modules included)
- introduce TypeScript and all that comes with it.
This decision is important because of the students familiarity with java. TypeScript offers more similarity to Java (what with it having, em, types, and all), but it is more complicated to teach than just sticking to javascript.
This decision is influenced greatly by the fact that the students are familiar with Java, which means it has to be a big factor in the choice we make.
Naturally, no method is "better" than another, but some methods would teach the students valuable skills.
So, which skills (and how significant are those skills) would the students learn, should we teach with typescript, instead of just javascript?