DEV Community 👩‍💻👨‍💻

Discussion on: How Much JavaScript You Need To Know To Start With ReactJs

Collapse
 
pierreatwork profile image
Pierre

Great article !

Not sure but i think you made a tiny mistake :

const arr1=[1,2,3,4]
const arr1=[...arra1, 5,6,7]
Enter fullscreen mode Exit fullscreen mode

Instead of

const arr1=[1,2,3,4]
const arr1=[...arr1, 5,6,7]
Enter fullscreen mode Exit fullscreen mode

If it's not a mistake, i'd like some info on why it's arra1 :)

Thanks !

Collapse
 
sachinchaurasiya profile image
Sachin Chaurasiya Author

Thank you for letting me know.
Will change it.