You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/App.js
+19-17Lines changed: 19 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,31 @@
1
1
importReact,{useState}from'react';
2
2
import'./style.css';
3
-
3
+
/*
4
+
Differences between forEach() and map() methods:
5
+
The forEach() method does not returns a new array based on the given array. The map() method returns an entirely new array. The forEach() method returns "undefined". The map() method returns the newly created array according to the provided callback function.1
0 commit comments