Actually It could since Roblox-ts is a thing. That means you can use all the JS things you learned to also develop in Roblox. Although it wont make you a better Roblox Developer.
First of all, Java is not the same as JavaScript.
Second, it really depends. For me, I was having trouble progressing with my personal learning until I took a class on Java that my school put on. After that class I did find myself progressing with Luau. So, should you? Sure. If it interests you. Will it help. Maybe.
Oh I thought Java and JS were the same. I’m still taking to course to learn something new, thanks for the info @Hiasei0@mostbootifulgirlever and @MrMoled
Java isn’t similar to lua (Because java has class), But javascript is bit simiar to lua.
But only bit similar, something like defenition of function/lambda isn’t similar to lua.
Learning any programming language will make it easier to learn another one because you have the basics down. Assuming you get to a decent level in JS you can probably switch over to Lua quite easily due to already knowing the fundamentals.
I don’t know any C++ but the other day I was debugging a satellite robot programmed in C++ and the knowledge I’ve gained from 3 years of Lua has definitely come in handy.
I loved learning Javascript, it was the first typing language I thoroughly learned. I do suggest learning a different language before Lua (Roblox) because Roblox has so many APIs it can be confusing. Great question!
In my opinion any previously known programming language will help you learn others, for a few reasons.
They share most of the same principles
They all have the same DataTypes give or take a few.
You have to problem solve
If you have trouble with something you can always think of how you would do it in the language you know best, chances are you will much easier be able to figure it out.
Those are just a few examples. I came from first learning luau to then learn python (which is now my most known language) knowing just a little bit of luau still helped learn python (not much since I didn’t know much luau). But know that I know python very well when I come across a problem in luau I think how I will solve it using python, then if there’s something in that solution I don’t know how to do with luau I just research that specific thing/function.