A complete guide to learning JavaScript for Web Development

🧵 👇🏻
JavaScript is a robust language for web development. You should learn it if you want to be a web developers

Reasons 🔽

🔹 Currently used by 94.5% websites
🔹 Wide range of applications including mobile and desktop devices
🔹 Most in-demand language

{ 2 / 19 }
Depth of JavaScript is something that every developer loves or hates (Not sure). But starting with it is easy.

Even it becomes 50% easier if you're familiar with the few common programming concepts. For example, loops. control statements etc...

{ 3 / 19 }
Learning any new technology follows the same principle - You should learn the basics first

Let's see some key concepts of JavaScript you should learn for web development

{ 4 / 19 }
Start with the basics of JavaScript or we can say basic of any programming language

- Print statement
- Data types and variables
- Basic operators
- Logical operators
- Comparisons
- Loops and statements

These all are pretty basic stuff in any programming language

{ 5 / 19 }
JavaScript helps you to add behaviour in you websites.

These two methods can help you to add interaction using which user can interact with your web page

1. alert()
2. prompt()

{ 6 / 19 }
alert() - display a dialog with an optional message, and to wait until the user dismisses the dialog.

prompt() - display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog

{ 7 / 19 }
Some intermediate topics that you should cover in JavaScript

- Arrays
- Objects
- Functions
- Arrow function
- Array methods

📌
📌

{ 8 / 19 }
This is great website and here you'll find a proper syllabus of JavaScript

🔗 https://javascript.info/ 

{ 9 / 19 }
I think much JavaScript would be good enough before jumping onto DOM manipulation

Basic things you need to cover in DOM

📌 Finding HTML Elements

- getElementsByTagName()
- getElementsById()
- getElementsByClassName()

{ 10 / 19 }
📌 Changing HTML Element

- element.innerHTML
- element.attribute
-element.style.property
- element.setAttribute(attr, value)

📌 Adding and deleting elements

- document.createElement(element)
- document.removeChild(element)
- document.appendChild(element)

{ 11 / 19 }
After learning these basic properties and methods, its time to move onto Evnets and Event Listener

The addEventListener() method attaches an event handler to the specified element.

{ 12 / 19 }
Upto this point you will able to make a fully functional website using JavaScript. But there are always some margin of improvement

Here are some advance key concepts

- Hoisting
- Closures
- Callbacks
- Promises
- Async & Await
- Currying
- And other ES6 feature

{ 13 / 19 }
The interesting part about JavaScript is that you can start writing code just now without installing any software or code editor

You can write JS code directly in your browser

{ 14 / 19 }
1. Open your browser
2. Right click
3. Click on inspect
4. Go to console
5. Start writing your first like of code

{ 15 / 19 }
Although you will need an editor as you go further into this field

There are plethora of editors out there. But I would recommend VS Code. Why?

- Many built-in features
- It's fast
- Large community
- IntelliSense code completion and debugging

{ 16 / 19 }
Here I compiled 9 website so that you can start learning JavaScript with minimum efforts

https://twitter.com/Prathkum/status/1380418201503272960?s=20

{ 18 / 19 }
I think that's pretty much it for this thread. I hope it helped you.

Thanks for reading this ❤️

*** END ***
You can follow @Prathkum.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: