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 👇
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.
- 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 - 🔗
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
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.