+ 1
How can I do with JavaScript
Hi. I want to know. How can I do with JavaScript. Because I want to learn only one language.
4 Respostas
+ 1
You can do a lot, I believe Chrome applets are written in js. But whatever you create will depend on a web browser to run normally. People like me block all scripts by default so that could be an issue. If you want to make a basic 2D game or app Java is probably best. It's far less obfuscated-looking code than the mess of web IMO. If you just wanna make a game with Unity then C#. If you're looking _long-term_ then I highly suggest C++ because you will only ever need this language. It's hard on beginners and you never stop learning but it's the closest to a one size fits all. It's de facto in game dev. There's no easy solution unless you want to use drag 'n drop dev tools -- but if they fit your needs then use them.
+ 2
Do you mean is it possible?
+ 2
JS is only really meant to be the brains behind web pages while HTML/CSS are the beauty. With basic JS you will need to run it in a web page or in a browser console, but NodeJS would allow you to make terminal-based applications and avoid HTML/CSS completely *or* use Electron and make nice, graphical desktop apps using HTML/CSS/JS.
If you're looking to build graphical applications using Electron + NodeJS: No. You should also learn HTML/CSS for the best chance to accomplish this.
If you just want terminal/command-line apps: Yes, JS + NodeJS can do this very well.
+ 1
JavaScript is one of the easier languages to learn so you should be okay.