Hello,
I am thinking about teaching my students JavaScript first so that they can start creating websites and make their career, what are your thoughts?
Hello,
I am thinking about teaching my students JavaScript first so that they can start creating websites and make their career, what are your thoughts?
JS for sure.
It has a reputation among programmers as being a bit of a mess, but I think the reasons behind that reputation are largely irrelevant to your use case.
Basically:
If there’s a need to introduce students to virtual DOM, I’d choose a library that doesn’t require language extensions or editor plugins, but allows to easily code with just the syntax of JS itself: properties as Plain Old JavaScript Objects, map/reduce with arrow functions, ternary operator, variables as usual, components as functions. Adding Mithril to existing WordPress websites for making dynamic parts such as calculators or quizzes was quite straightforward. On the other hand, its API is somewhat less convenient than what React offers.