+ 3

Write my code from java to javascript

I created a game in JAVA and now I wanna rewrite it in JavaScript. Any advices?

18th Nov 2020, 5:14 PM
Khaled ^^ خالد القريشي‎
Khaled ^^ خالد القريشي‎ - avatar
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
18th Nov 2020, 5:27 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
+ 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
18th Nov 2020, 5:41 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
+ 6
Khaled ^^ خالد القريشي‎ "Java is to JavaScript as ham is to hamster." - Jeremy Keith, Web Developer http://javascriptisnotjava.com
19th Nov 2020, 11:23 PM
Chris Ng
Chris Ng - avatar
+ 5
Ok, I think I got your idea. You want to write java program and convert to js then build 2 program Khaled ^^ خالد القريشي‎
18th Nov 2020, 5:33 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
18th Nov 2020, 5:23 PM
The future is now thanks to science
The future is now thanks to science - avatar
+ 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
18th Nov 2020, 5:59 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
+ 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 ^^
18th Nov 2020, 5:45 PM
Khaled ^^ خالد القريشي‎
Khaled ^^ خالد القريشي‎ - avatar
+ 2
Java and javascript are differant languages with differant frameworks, if its a console programs go and study the syntax of JS and rewrite :)
18th Nov 2020, 5:49 PM
Momen Abdelwadoud Abdalla Elkhalifa
Momen Abdelwadoud Abdalla Elkhalifa - avatar
+ 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^^
18th Nov 2020, 5:30 PM
Khaled ^^ خالد القريشي‎
Khaled ^^ خالد القريشي‎ - avatar
+ 1
Zatch bell I don't think using converters is a good idea. Especially if the project is multiple files, thank you^^
18th Nov 2020, 5:32 PM
Khaled ^^ خالد القريشي‎
Khaled ^^ خالد القريشي‎ - avatar
+ 1
Ananiya Jemberu I just wanna rewrite a code in JS. that code I already wrote in java
18th Nov 2020, 5:34 PM
Khaled ^^ خالد القريشي‎
Khaled ^^ خالد القريشي‎ - avatar
+ 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
20th Nov 2020, 10:57 AM
George S Mulbah II
George S Mulbah II - avatar
0
Chris Ng didn't ask for the difference. But thanks for the qouete ^^
20th Nov 2020, 12:50 PM
Khaled ^^ خالد القريشي‎
Khaled ^^ خالد القريشي‎ - avatar
0
Ayudenme hacer una pagina web de google
20th Nov 2020, 4:53 PM
DRXT