+ 3
Write my code from java to javascript
I created a game in JAVA and now I wanna rewrite it in JavaScript. Any advices?
14 Answers
+ 7
Khaled ^^ خالد القريشي there name looks close but there is much difference between them in library, VM.
So... It depends if it has many file and use library impossible or if it is just small code you can
+ 6
Ah, so as i told you before that project may have library which may not be available in js.
Anyways if the project is wide impossible or small you can
TIP: there is no such converting tool so you need to convert it by your self if you know both
+ 6
Khaled ^^ خالد القريشي
"Java is to JavaScript as ham is to hamster."
- Jeremy Keith, Web Developer
http://javascriptisnotjava.com
+ 5
Ok, I think I got your idea. You want to write java program and convert to js then build 2 program Khaled ^^ خالد القريشي
+ 4
This question might help you:
https://www.quora.com/What-is-the-best-way-to-automatically-convert-Java-to-JavaScript
+ 4
Khaled ^^ خالد القريشي why I say that impossible java runs on stuff called jvm but js runs in web that give them kilometers difference so the machine is not able to convert them like google translate but if you try some java families like kotlin, scala you would able to translate em with seconds with machine since they runs on the same vm
+ 2
Ananiya Jemberu yeah, they don't have the same library but there are other ones that they do the same job. Yeah if google translator didn't give you the best result. How a code translator can do that. As u said the best way is convert it by your self ^^
+ 2
Java and javascript are differant languages with differant frameworks, if its a console programs go and study the syntax of JS and rewrite :)
+ 1
Ananiya Jemberu i kinnda know both, it is just the fact I wanna rewrite the code in js, i said instead of coding everything from scratch it might be some tips that i don't know yet , thank you^^
+ 1
Zatch bell I don't think using converters is a good idea. Especially if the project is multiple files, thank you^^
+ 1
Ananiya Jemberu I just wanna rewrite a code in JS. that code I already wrote in java
+ 1
First try to understand the difference between the two OK
if you want to create code that work on both Web and android look at react native
0
Chris Ng didn't ask for the difference. But thanks for the qouete ^^
0
Ayudenme hacer una pagina web de google