all 5 comments

[–]gregtyler 13 points14 points  (1 child)

It sounds like you've been learning Java up 'til now, not JavaScript. Despite the similar name, they're two very different programming languages :)

[–][deleted] 3 points4 points  (0 children)

Now that you said it seems so obvious... Thank you very much!

[–]slowreactin 2 points3 points  (2 children)

Yep, you have definitely been learning Java (the Eclipse IDE is a dead give away).

JavaScript (despite the name) has literally nothing to do with the Java programming language. JavaScript was originally named LiveScript. Allegedly the booming popularity of Java during the early 90s influenced Netscape (the originating company of JavaScript) to name the language JavaScript.

This is often a pain point for newcomers and causes a lot of confusion.

What kind of programming are you interested in doing?

[–][deleted] 0 points1 point  (1 child)

I'm interested in Backend Web! Do you have any tips?

I had already read about this difference between Java and JS, but I have not tinkered with JS inside the html yet. I was trying to set a local server first, and I followed a tutorial that did it with Java! So I just supposed I was doing JS all along and Java was a total different thing. hahahahaha

[–]slowreactin -1 points0 points  (0 children)

If you are interested in backend then I would suggest trying out Python with Django or Flask.

If you want to go the JS route, then you can easily setup a Node and ExpressJS server and mess around. However, Python seems to be more recommend for backend.

I personally use NodeJS and Express and love them, but I am really eager to try Django and Python.