Ayush Thakur
Ayush Thakur

@JSAyushThakur

8 تغريدة 6 قراءة Nov 25, 2022
JavaScript Concepts you need for React
Thread🧵👇
1️⃣ Template Literals
👉 Use of two back-ticks ` ` to concatenate strings
👉 ${} is used to return any dynamic value
2️⃣ Short Conditionals: &&, ||, Ternary Operator
👉 Logical operators determine the logic between variables or values
👉 Ternary Operator works similar to the if-else statement, but in shorter-expression
3️⃣ Three Array Methods
👉 Map: Loops the whole array and return the item and index
👉 Filter: Returns the items which pass the specific condition
👉 Reduce: Executes a reducer function for array element
4️⃣ Destructuring
5️⃣ Spread and Rest Operator
6️⃣ Functions and Arrow Functions
👉 Function is a block of code that can be executed multiple times without writing it multiple times
👉 Arrow Functions are just basic functions with simpler syntax
Thank you for reading the thread ☺️
If you like it then do give the first tweet a RETWEET 🙌

جاري تحميل الاقتراحات...