Pratham Profile picture
27 Aug, 19 tweets, 4 min read
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,
Basic things you need to cover in DOM

πŸ“Œ 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)
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.
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 is the complete general introduction to JavaScript

The most important concept on which the entire JavaScript language based on

The Event Loop

Project-based learning is the best. Here are some practice projects you can build.

freecodecamp.org/news/javascrip…
Check out this 5 excellent websites which can take your JavaScript skills to the next level.

And I guess that's pretty much it for this thread. Hope you find it helpful πŸ’–

Share it with your connections if this is the case and I'll catch you in the next one. πŸ˜‰

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Pratham

Pratham Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Prathkum

30 Jul
5 great code snippet websites for every web developer and designer

πŸ§΅πŸ‘‡πŸ»
1️⃣ 30 Seconds of Code

- Short code snippets for all your development needs

πŸ”— 30secondsofcode.org
2️⃣ Free Frontend

- Free hand-picked HTML, CSS and JavaScript (jQuery, React, Vue) code examples, tutorials and articles

πŸ”— freefrontend.com
Read 6 tweets
23 Jul
Some of my best threads of web development that led me to over 100,000 audience.

πŸ§΅πŸ‘‡πŸ»
1. JavaScript for Web Development β˜•

2. Long and detailed explanation of CSS Grid Layout

Read 8 tweets
13 Jul
Have you found the "z-index" a confusing concept of CSS?

Don't worry, the next 6 tweets will solve all of your doubts.

πŸ§΅πŸ‘‡πŸ»
z-index is a CSS property that controls the stacking order of elements along the z-axis.

Image a hypothetical line starting from your eye to screen, that is z-axis
Note that z-index only works on positioned elements.

You need to specify the position (relative, absolute, sticky, fixed) if you want to arrange an element using z-index
Read 8 tweets
12 Jul
6 beginner friendly websites to learn and improve your JavaScript knowledge

πŸ§΅πŸ‘‡πŸ»
1. JavaScript Tutorial

- This JavaScript Tutorial helps you learn the JavaScript programming language from scratch quickly and effectively.

πŸ”— javascripttutorial.net
2. Learn JavaScript

- Interactive JavaScript tutorial.

πŸ”— learn-js.org/en/
Read 7 tweets
8 Jul
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
Read 18 tweets
7 Jul
5 great websites a web developer should visit

Thread 🧡
1. Web Skills

Websites for all kinds of learning resources for web developers

- Fundamentals
- Accessibility
- Web components
- Progressive web apps
- Frameworks and libraries
- Testing
- Architecture and Paradigm
- UI and UX

πŸ”— andreasbm.github.io/web-skills/
2. Gitignore

A collection of useful .gitignore templates for your project. Select from 442 Operating System, IDE, and Programming Language

πŸ”— toptal.com/developers/git…
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(