JavaScript is an enormous language but you don't need to learn everything in the beginning.
Here is the detailed explanation on JavaScript for Web Development π§΅ππ»
JavaScript is a kind of language that as you progress deeper in the field, you will come to know a lot more cool concepts about it.
Prerequisites if you want to learn JavaScript for web development ππ»
- HTML
- CSS
First and foremost, it's a programming language so you should know about basic programming concepts:
- Data types in JavaScript
- Variables
- Statements
- Control statements
- Operators
- And other basic stuff....
When I started learning web development, I had basic knowledge about Java language which helped me a lot because I was no more in a need to learn about these general programming concepts.
But you can start with the ZERO knowledge as well.
There are some advanced topics in JavaScript which you don't need to learn in the beginning. For ex:
- Async/await
- callbacks, promises, etc...
These are some advance concept which you can learn after
You need to cover some intermediate topics so that you can add behaviour to your website. They are
- Arrays and their methods
- Objects
- Functions
- Arrow function
These will help you to work with DOM.
Let's talk about DOM a little bit. It stands for Document Object Model.
Consider it as a tree that comprises the content of a particular web page (HTML)
DOM gives you a superpower to change your webpage at your convenience using JavaScript.
- You change the HTML elements, attribute, styles
- You can delete existing HTML elements
- You can add HTML elements
JavaScript and DOM are connected.
We use DOM to access the elements but write JavaScript code in order to modify them.
Here is a simple example:
Don't get confused here. DOM is not a programming language it's just a model using which we can access and modify HTML elements,
CSS is an enormous module of web development but you don't need to learn everything in the beginning.
Let's try to figure out how much CSS will be enough to make beautiful websites
𧡠ππ»
CSS is an amazing and unique language that servers a great purpose. We can make our website visually good using CSS. It describe the presentation of web pages, including typography,. layouts, color etc...
CSS is totally operates on properties value pair. And there are around ~300 distinct properties in CSS