8 basic JavaScript concepts to know as a Beginner

Thread below 🧵
🔹Events

JS is an event-driven language. There is an action/event from the user to trigger your script to run.

You define an event handler that will run when a particular event eg click, hover etc is triggered.

There are many DOM Event methods and Properties to learn
🔹Variables

Variables are containers of data. It's important to learn about identifiers like let, const and var. Also understand the different data types:

✅String
✅Number
✅Boolean
✅ Arrays
✅ Objects
...
🔹DOM manipulation

This is Document Object Model. It's a tree-like representation of our HTML page. JavaScript provides us some methods to manipulate the DOM:

- querySelectorAll()
- createElement
- getAttribute()
- getElementByTagname()
...

Study them.
🔹Conditionals

This is the foundation on which algorithms and logics are written.

If (thisThreadGood) {
retweet ()
}
else ...

Learning this is crucial.
🔹Loops

Sometimes, you'd want an instruction to continuously execute until a condition is met. This is called looping or iteration.

It's a very important concept in JS that must be learned.
🔹Functions

Functions are pieces of code you can call to perform an action/task. It can take data in as parameters. After defining a function, you can call it by using it's identifier:

callFunction();
🔹Scopes

In a JavaScript, some variables can be accessed by certain parts of the code while some can't. These depends mainly on the type of identifiers used to define variable. It can make the variable block or lexical scoped.

This concept is known as scoping.
🔹Asynchrony

JavaScript is Async in nature. This means that you can "tell" part of the code to run "later" or "wait" while others run immediately. This covers:

✅ Callbacks
✅ Promises
✅ Generators
...
There are tons of other concepts to know but I choose to shed light on these.

You can put the ones I omitted in the comments.

If you found this helpful, follow me 👉 @UbahTheBuilder for similar threads.
If you want an in-depth material to see all of these in action, you can get this eBook 👇

gumroad.com/a/834147443

• • •

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

Keep Current with Kingsley Ubah💥

Kingsley Ubah💥 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 @UbahTheBuilder

27 Apr
The quickest way to learn JavaScript is by having the right resources.

Here are some good resource to learn JavaScript.

🧵
🔹JavaScript Prototype - 🔗 freecodecamp.org/news/a-beginne…

🔹ES6 - 🔗 w3schools.com/js/js_es6.asp

🔹Variable Scoping - 🔗 w3schools.com/js/js_scope.asp

🔹JavaScript Closures - 🔗 developer.mozilla.org/en-US/docs/Web…
Read 5 tweets
24 Apr
7 essential skills every web developer should have (my opinion)

Thread below🧵
🔹 Problem Solving

I put this first because I think it's the most essential soft skill to posses.

Whether you are planning your site's design, styling elements or debugging, you are solving a problem.

Web devt and programming is all about problem solving and critical thinking.
🔹 Communication

Not everyone knows what the DOM, Git or an API is.

Being able to communicate difficult concepts in a simple and digestible way is a crucial skill, especially for teamwork and collaboration.

Mastering the art of effective communication is crucial for a web dev
Read 8 tweets
22 Apr
4 habits I use to write code faster

Thread below🧵
🔹Relative Comparisons

This is a strategy I use to remember syntax. I simply reason about one language/syntax in relation to another.

For eg,JavaScript uses semicolons and bracket parameters whereas Python uses no brackets, as well as indentation.

By relating them, I remember.
🔹Cleansheets

I have so many cleansheets saved in my computer. Cleansheets for Git commands, CSS selector syntax, JavaScript, Flexbox and CSS grids, Bootstrap classes etc are all saved on my computer.

When I get stuck, I just refer to them easily and quickly.
Read 7 tweets
13 Apr
7 VSCode extensions to improve productivity as a web developer

Thread below 🧵
🔹LIVE SERVER

Live Server sets up a local development server with a live reload feature for previewing your site

Every time you save your code, you'll instantly see the changes on the browser

marketplace.visualstudio.com/items?itemName…
🔹ICON FONTS

Icon Fonts offers snippets for a variety of icon fonts, including the popular Font Awesome v5 icon pack.

marketplace.visualstudio.com/items?itemName…
Read 10 tweets
12 Apr
Beginners guide to learning back-end development with JavaScript

Thread below 🧵
- Node Beginners Tutorial - 🔗 w3schools.com/nodejs/
- Express.js for Beginners - 🔗 developer.mozilla.org/en-US/docs/Lea…
- Express.js for Beginners (video) - 🔗
- MongoDB for Beginners - 🔗
- Full Node.js project with Passport, Express and Mongo - 🔗
- OAuth 2.0 tutorial - 🔗 tutorialspoint.com/oauth2.0/index…
- Node Authentication with Cookies and Sessions - 🔗
- Next js for Beginners - 🔗
Read 5 tweets
6 Apr
7 GitHub Repositories all web developers should know

Thread below 🧵
🔹33 JS CONCEPTS

This repository contains 33 concepts that every JavaScript developer should know. It is a very useful repository for both newbie and experienced JavaScript developers to strongly grasp the basics of JavaScript

github.com/leonardomso/33…
🔹 AWESOME CLEANSHEETS

Cleensheets are very useful resources which contains huge amount of information on a specific topic.
This repository has got cheatsheets for basically everything — from frontend libraries to backend and even databases.

github.com/LeCoupa/awesom…
Read 9 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!