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
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....
- 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.
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
- Async/await
- callbacks, promises, etc...
These are some advance concept which you can learn after
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
- You change the HTML elements, attribute, styles
- You can delete existing HTML elements
- You can add HTML elements
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,
Basic things you need to cover in DOM
π Finding HTML Elements
- getElementsByTagName()
- getElementsById()
- getElementsByClassName()
π Finding HTML Elements
- getElementsByTagName()
- getElementsById()
- getElementsByClassName()
π Changing HTML Element
- element.innerHTML
- element.attribute
- element .style.property
- element.setAttribute(attr, value)
Pushpin Adding and deleting elements
- document.createElement(element)
- document.removeChild(element)
- document.appendChild(element)
- element.innerHTML
- element.attribute
- element .style.property
- element.setAttribute(attr, value)
Pushpin Adding and deleting elements
- document.createElement(element)
- document.removeChild(element)
- document.appendChild(element)
Just one last thing and then you will be able to make fully-fledged websites.
After learning these basic properties and methods, its time to move onto Events and Event Listener
The addEventListener() method attaches an event handler to the specified element.
After learning these basic properties and methods, its time to move onto Events and Event Listener
The addEventListener() method attaches an event handler to the specified element.
Up to this point you will able to make a fully functional website using JavaScript. But there are always some margin of improvement
Here are some advanced key concepts
- Hoisting
- Closures
- Callbacks
- Promises
- Async & Await
- Currying
- And other ES6 feature
Here are some advanced key concepts
- Hoisting
- Closures
- Callbacks
- Promises
- Async & Await
- Currying
- And other ES6 feature
Here is the complete general introduction to JavaScript
The most important concept on which the entire JavaScript language based on
The Event Loop
The Event Loop
Project-based learning is the best. Here are some practice projects you can build.
freecodecamp.org
freecodecamp.org
And I guess that's pretty much it for this thread. Hope you find it helpful π
Loading suggestions...