Skip to content

Commit 4b239e7

Browse files
one more problem has been solved
1 parent cf6e355 commit 4b239e7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

C. Array/reverse.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
/** Write a JavaScript code to reverse the array colors without using the reverse method.
2-
3-
Input: const colors = ['red', 'blue', 'green', 'yellow', 'orange']
4-
5-
Output:
6-
['orange', 'yellow', 'green', 'blue', 'red'] **/
1+
/** Problem-14
2+
Write a JavaScript code to reverse the array colors.
3+
add 'red', 'blue', 'green', 'yellow', 'orange' color. **/
74

85
let colors = ['red', 'blue', 'green', 'yellow', 'orange'];
96
console.log(colors.reverse());

0 commit comments

Comments
 (0)