Can java be converted to js? like node? Write js, in JAVA syntax. If you can, why not?

angular is like spring,

typescript is like java

Why is it that js gave birth to this content, instead of java supporting the conversion to js, and then directly using frameworks such as java"s spring?


angular , typescript is essentially JS , you can use JS syntax. JAVA syntax writing JS is not impossible, but unnecessary.

angular , typescript syntax is biased towards JAVA syntax because the JAVA specification is really suitable for engineering.


language limitations, JS language advantage is weakly typed language, flexible, but also high barriers to use, and no large-scale engineering experience.
java is a strongly typed language with relatively low barriers to use, perfect biosphere and high support from various major manufacturers. The key is that there are a series of perfect resources, such as engineering / IDE, etc.

Menu