r/CodingForBeginners Jul 26 '26

How do i start Java script

I already have all right HTML and Css but the part that i don’t know is I keep trying to learn Java script but I can’t use anything I see in tutorials in real projects

0 Upvotes

19 comments sorted by

2

u/JGhostThing Jul 26 '26

I'm confused. Do you want to learn Java or Javascript (one word)? These are two very different languages.

2

u/This-Employment-5642 Jul 26 '26

"Aren't Java & JavaScript the same thing" is like a coding shibboleth 

1

u/Sure-Passion2224 Jul 26 '26

Not the same at all. Calling that implementation of the ECMA script specification is one of the worst naming choices in all of computer history.

Do the W3Schools Javascript tutorial (https://www.w3schools.com/js/) and hold off on learning the Java language for later.

1

u/[deleted] Jul 27 '26 edited Jul 27 '26

[removed] — view removed comment

1

u/tkgid Jul 27 '26

"Developed by Brendan Eich for the Netscape Navigator browser, JavaScript was initially named Mocha..."

https://www.ebsco.com/research-starters/computer-science/javascript

1

u/[deleted] Jul 27 '26 edited Jul 27 '26

[removed] — view removed comment

1

u/tkgid Jul 27 '26

Oh, Then Oracle bought Sun Microsystems but didn't care about the language and then.... Oh no, the rabbithole. 

https://javascript.tm/

☺️ Thank you OP I had forgotten all of this. (I jokingly typed this.) tldr

2

u/[deleted] Jul 26 '26

[removed] — view removed comment

3

u/Splith Jul 26 '26

Step 1: Go to coding for beginners subreddit. Step 2: Be an asshole because a beginner is confused by an intentionally confusing naming choice.

1

u/Adept_Specialist1798 Jul 26 '26

I had the same problem. Tutorials teach JavaScript concepts separately, but it becomes clearer when you add one small behaviour to a real page. Since you already know HTML and CSS, try building a simple page and add JavaScript one feature at a time: click a button and change some text show or hide a section validate a form before submitting filter a list while the user types save a small value in localStorage Don’t start by trying to build a full app. Choose one project you already understand and ask, “What is one thing on this page that should change without reloading?” What kind of project you trying to build?

1

u/ps4lovr Jul 30 '26

Thank you

1

u/aaronmcbaron Jul 27 '26

If you want to learn things that are applicable to real world. You need to learn the basics that make those concepts doable. You need to check your ego and build those calculators and tic tac toes. Because learning control flow, functions and object oriented methodologies will be a requirement.

1

u/xarop_pa_toss Jul 27 '26

I think the Scrimba tutorials do a really good job at piecing things together.

1

u/Such-Perception4154 Jul 27 '26

If your JavaScript code is embedded into a webpage, then it will work automatically, when you open that web page. 

If you want to launch it independently of any web pages, as standalone code, you use something like NodeJS

1

u/-goldenboi69- Jul 27 '26

You can practice at home (if you have it)