JavaScript is the most important language for web development. Let's see how you can start learning it

A THREAD🧡
In this thread, we will cover some quick points so that you will be able make functional websites within 10 - 15 days.

However JavaScript is much more than this. But this thread will give you a quick overview

{ 2 / 18 }
First things first, whenever I'm up to learning new technology or language, I always start with a crash course. By doing so I get a quick overview of things in almost no time

{ 3 / 18 }
Here's a crash course of JavaScript by Freecodecamp.

Crash courses are just for quick look. Don't just stop learning after it. Keep exploring things by your own



{ 4 / 18 }
The interesting part about JavaScript is that you can start writing it directly in your browser.

So you can have a taste of it without editor. Let's see how

{ 5 / 18 }
- Open your browser
- Right click anywhere
- Inspect
- A window will come
- From the top navigation bar, go to console

Here you can write JavaScript code

{ 6 / 18 }
1️⃣ Start with JavaScript Variables

Variable are nothing but containers for storing data values. You will use them almost 100% in your JavaScript code.
There are three ways to declare a variable using var, let and const keyword

{ 7 / 18 }
2️⃣ Loops and conditional statements

Loops are nothing but piece of code that repeats itself on a particular situation whereas conditional statement is a piece of code that runs when particular conditions occurs

Loops:

{ 8 / 18 }
3️⃣ alert() and prompt() methods

An alert box is often used to popup some message whereas prompt is used for taking input from user.

A typical exampleπŸ‘‡

{ 9 / 18 }
4️⃣ Arrays and their methods

We can say array is nothing but the collection of data.
Check this video for a quick look



{ 10 / 18 }
You can keep my array methods cheat sheets with you. Mostly while writing JavaScript code, you'll definitely use Array and it's methods.
So it's good thing to learn in the beginning

{ 11 / 18 }
5️⃣ JavaScript - HTML DOM methods

You might know that JavaScript is for adding behaviour in your webpage. For that you need to catch the HTML element so that you can change things accordingly

HTML DOM methods are actions
HTML DOM properties are values that you can set

{12/ 18}
Using HTML DOM you can

- Catch element in JavaScript file
- Change whatever you want
- Add or delete element

{ 13 / 18 }
6️⃣ Events

You can handle various events using JavaScript. An event can be defined as something the browser does, or something a user does.

For example, click is a event that user does, whereas onload is a event when user enters the page

{ 14 / 18 }
An example of typical click event
The onclick attribute fires on a mouse click on the element.

{ 15 / 18 }
7️⃣ The addEventListener()

When using the addEventListener() method, the JavaScript is separated from the HTML markup, for better readability and allows you to add event listeners even when you do not control the HTML markup

{ 16 / 18 }
For example, consider the same example as above.

There are a lot of other events as well that you can tackle and play around. For ex. mouseover, mouseout, focus,load, etc..

Check the full list here w3schools.com/jsref/dom_obj_…

{ 17 / 18 }
I think that should be enough in order to add some decent behaviour in your web page.

Did I miss something? Add below

And if you like this thread please share it with your connections ❀️

β€’ β€’ β€’

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

25 Mar
Everything you need to know before starting with web development

πŸ§΅πŸ‘‡
Hey, thereπŸ‘‹

If you want to learn web development then this thread is for you. In this thread, I will try to give a basic overview of the things you need to do to get started.

And any other doubt you have in mind... So Let's go

{ 2 / 23 }
Web development is a vast field but mainly revolves around 3 different technologies.

HTML, CSS and JavaScript - You can learn these things with 100 Days let's see how....

{ 3 / 23 }
Read 23 tweets
24 Mar
Let's see some cool CSS features that have not yet been standardized.

πŸ§΅πŸ‘‡πŸ»
In this thread I will be covering features of webkit extension but you do the same thing for mozilla as well

Here: developer.mozilla.org/en-US/docs/Web…

{ 2 / 8 }
1️⃣ -webkit-tap-highlight-color

-webkit-tap-highlight-color is a non-standard CSS property that sets the color of the highlight that appears over a link while it's being tapped.

{ 3 / 8 } a {   -webkit-tap-highlight...
Read 8 tweets
24 Mar
If you know CSS then you can use these amazing generators and save your time

Thread πŸ§΅πŸ‘‡πŸ»
1️⃣ CSS Box Shadow Generator

- Generate CSS3 Box Shadow code for your Div, Frame, Buttons or any other HTML element with Outline, and Inset (inner) type shadow effects

πŸ”— cssboxshadow.com Image
2️⃣ Glassmorphism

- Generate glassmorphic design easily

πŸ”— glassgenerator.netlify.app Image
Read 6 tweets
24 Mar
Well all that we have covered so far we can do that using flexbox also.

Let's understand the 2 dimensions of grid layout

{ 14 / 21 } Image
We can change the position of a particular items in accordance of row and column

For example, I want my first item taking up entire row, that is from first column to last column

grid-column: 1 / 4;

{ 15 / 21 } ImageImage
Alright moving forward, The next property we have is grid-template-areas which specifies the areas within the grid layout.

Each row is defined by apostrophes (' ')

Sounds confusing? Let see this in action

{ 16 / 21 }
Read 8 tweets
24 Mar
A complete beginner's guide to CSS Grid layout πŸ‘‡πŸ»

Thread🧡 Image
Grid is used for making complex web design layouts more easily as it's not so hard to master

Using Flex you can make only 1D layout but Grid gives you full power of creating 2D layout

Let's start

{ 2 / 21 }
First things first, start with giving the display property "grid" to the container element or parent element

{ 3 / 21 } Image
Read 13 tweets
22 Mar
Beginner's guide to the most widely used hooks of React

The useState and useEffect hook

A long threadπŸ§΅πŸ‘‡πŸ»
Start with the useState hook

- You will use it almost 100% in your component. The useState hook is not so tough to understand but there is some hiddent concepts, Let's start πŸ‘‡πŸ»

{ 2 / 27 }
Working with React hooks, first thing you need to do is to import the particular hook

It's quite easyπŸ‘‡

πŸ“Œ import { useState } from "react";

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