Pratham Profile picture
11 Apr, 19 tweets, 5 min read
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

πŸ”— 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 }
Check out this link for a quick start guide

developer.mozilla.org/en-US/docs/Lea…

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



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

Thanks for reading this ❀️

*** END ***

β€’ β€’ β€’

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

13 Apr
I failed 8+ interviews. This is what I did

πŸ§΅β‡“
99% of the time, we already know the outcome of the interview ⇓

{ 2 / 7 }
The biggest reason for failing a particular interview is the inability to answer certain questions.

Instead of feeling dispirited, I move on but ⇓

{ 3 / 7 }
Read 7 tweets
12 Apr
These 8 CSS tips and tricks will make you pro in CSS🎨

🧡 πŸ‘‡πŸ»
1️⃣ Create round text

Creating round text on your website is easy ImageImageImage
2️⃣ Change the marker of list element

- The "type" attribute of <ol> element accpets 5 type of values πŸ‘‡πŸ» Image
Read 9 tweets
12 Apr
8 CSS pseudo classes most likely you are not familiar with

🧡 πŸ‘‡πŸ»
1️⃣ :autofill

- The :autofill CSS pseudo-class matches when an <input> element has its value autofilled by the browser

See this in action here codepen.io/prathamkumar/p… input:autofill {   border: 3px solid blue; }
2️⃣ :empty

- The :empty CSS pseudo-class represents any element that has no children.
Read 8 tweets
11 Apr
7 great websites a programmer should visit

Thread 🧡 πŸ‘‡πŸ»
1️⃣ Pastebin

Pastebin can store texts like code, notes, and snippets online for a set time which can be shared instantly.

πŸ”— pastebin.com
2️⃣ Learn Shell

Whether you are an experienced programmer or not, this website is intended for everyone who wishes to learn programming with Unix/Linux shell interpreters.

πŸ”— learnshell.org
Read 8 tweets
10 Apr
Top 12 Cheat Sheets that can help you immensely if you're a coder

🧡 πŸ‘‡πŸ»
1️⃣ Linux cheat sheet 🐧

πŸ”— assets.hongkiat.com/uploads/cheats…
2️⃣ Big-O cheat sheet

πŸ”— bigocheatsheet.com
Read 14 tweets
10 Apr
Complete guide to Responsive Web Design

πŸ§΅πŸ‘‡πŸ»
In order to make a RWD, you just need to consider one thing.

"Ability of content to fit inside any device that look good and it will be for user to interact with that"

{ 2 / 16 }
Responsive web design is not a kind of program or framework. We can say it's a combination of various concepts using which we try to make our web page look good on all devices

The great thing is that you can achieve RWD using HTML and CSS only⚑

{ 3 / 16 }
Read 17 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!