DEV Community

Cover image for Javascript fundamentals before learning react

Javascript fundamentals before learning react

Harry on September 26, 2021

Before Going to Learn React You must need Some JavaScript concepts. let,var and const function and arrow function callback hight order...
Collapse
 
haaxor1689 profile image
Maroš Beťko • Edited

Overall not bad of an overview and may be useful for someone looking for where to start.

What you should definitely improve about this article is some styling and proofreading. You left in multiple typos, 2 of the sections from overview aren't even in the article and the code snippets have barely any formating and are hard to read.

Collapse
 
hareom284 profile image
Harry

Thank for your feedback I will try to improve this. I just starting writing this so I don't have any idea .I will improve this point

Collapse
 
sunflower profile image
sunflowerseed • Edited

you said

const add = () => { a + b} ;
Enter fullscreen mode Exit fullscreen mode

there is not even a or b in the param. Also, you open the {, and so you need a return. Otherwise it is going to evaluate a + b and return nothing.

Or just use

const add = (a, b) => a + b;
Enter fullscreen mode Exit fullscreen mode
Collapse
 
sanampakuwal profile image
Sanam • Edited

Add js after three dots in snippets to make JS
code readable and highlighted.

Example:

console.log("Hi");
Enter fullscreen mode Exit fullscreen mode
Collapse
 
hareom284 profile image
Harry

Thank you so much!

Collapse
 
gbadamson profile image
Gbadamson

🤔🤔🤔

Collapse
 
moopet profile image
Ben Sinclair

Have you tried the "array destructuring" example in a browser console?

Collapse
 
hareom284 profile image
Harry

Yes It is working now!

Collapse
 
farhadi profile image
Farhad Rahmani

Thank you Dear That Was Awesome

Collapse
 
hareom284 profile image
Harry • Edited

I am happy tio hear that this will helpful to you.

Collapse
 
hareom284 profile image
Harry

Thank you I will try to improve this.