Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

subhash vyas
PLUS
subhash vyas
Courses Plus Student 1,400 Points

Hi everyone Can i start directly with JAVASCRIPT without any prior knowledge of html or css?

I want to develop react based apps, please guide me should I start with JAVASCRIPT directly or go for html and css first. Much appreciated your guidance. Thanks

2 Answers

Ronald Opara
seal-mask
.a{fill-rule:evenodd;}techdegree
Ronald Opara
Full Stack JavaScript Techdegree Student 3,201 Points

HTML, CSS, and JavaScript are the foundations of web development. From my own personal experience, I think it would be imperative to learn HTML and CSS first. Everyone's learning experience is different. I personally learned HTML and CSS before I started putting my time into JavaScript, and I believe that helped me significantly in the beginning of my journey, but it is possible to learn Javascript while learning HTML and CSS at the same time.

Eric M
Eric M
11,546 Points

The answer to your title is "yes" but the answer to the body of your question is "maybe".

While JavaScript can be run outside of the web browser using node.js, creating programs with no use of HTML/CSS, React is a front-end JavaScript framework. Front-end means what is actually displayed to the user. HTML is how you describe what will be layed out in a user facing web interface, CSS is how describe how the HTML elements will look and where they'll sit. JavaScript is a programming language used to describe how the elements interact with the user and eachother, and how their HTML and CSS changes as part of that interaction.

React is a JavaScript library, but you end up writing HTML, CSS, and JavaScript when building a React app. You will write HTML for most React components - especially when starting out.

You can try to learn them together, but due to the way they build on eachother I would suggest starting with HTML, then adding CSS, then adding JavaScript. Don't feel like you have to master a topic before trying out the next one though! HTML, CSS, and JavaScript are best together.