Sometimes I wonder how much java and js code could be written intechangably. now that Java has the var keyword and arrow functions.
var
I didn't know Java has those features now!
Not much, actually. While the syntax is rather similar the language design is very different and the runtimes are even more different.
Java is much more similar to C# in their goals and language design, so they might be what comes close to "interchangeable".
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Sometimes I wonder how much java and js code could be written intechangably. now that Java has the
var
keyword and arrow functions.I didn't know Java has those features now!
Not much, actually. While the syntax is rather similar the language design is very different and the runtimes are even more different.
Java is much more similar to C# in their goals and language design, so they might be what comes close to "interchangeable".