Fundamental JavaScript concepts to learn before jumping into React, Svelte or Vue
A thread. ๐งต ๐
1. Functions
Reusable named blocks of code that help to organize and prevent repetition.
The basic function declaration concept will be used constantly with any framework.
2. Conditionals
If statement and switch cases. The conditional allows you to write code that reacts to user inputs, dynamic data and decisions.
They are the main construct of implementing logic.
3. Loops
Repeat a block of code a set number of times or until a condition is met.
Also used to prevent repetition and react to dynamic data. Think about an array where you don't know how many elements it will
4. Arrays
Arrays in JavaScript are the most used data structure. They have built in functionality that allows you to filter, sort, search and iterate over them.
They are heavily used in most JavaScript frameworks to build out dynamic user interfaces.