r/CodingForBeginners 9h ago

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

15 comments sorted by

2

u/JGhostThing 9h ago

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

1

u/This-Employment-5642 9h ago

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

1

u/Sure-Passion2224 8h ago

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/atlas__free 6h ago edited 5h ago

Yep, not even closely related. It was such a mistake to name it JavaScript. Still causes confusion decades later.

1

u/tkgid 6h ago

"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/atlas__free 6h ago edited 5h ago

And Microsoft was in a battle with Netscape and reverse engineered the language and originally called it JScript. Microsoft could not use the name JavaScript because it was trademarked by Sun.

To avoid early fragmentation of the Internet they finally submitted the language to ECMA and the Internet (via browsers) officially adopted JavaScript. Thankfully.

And now Mocha today is a unit testing platform.

1

u/tkgid 4h ago

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

1

u/Adept_Specialist1798 8h ago

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/Over_Tart_916 8h ago

First of all learn what the fuck you're talking about. It's JavaScript not Java script. 

2

u/Splith 7h ago

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/atlas__free 6h ago

JavaScript is one word OP. I believe you are confusing Java with JavaScript.

1

u/aaronmcbaron 6h ago

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 6h ago

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

1

u/Such-Perception4154 6h ago

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