Skip to content

Commit 1a451f6

Browse files
committed
studio update
1 parent 98f26c7 commit 1a451f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arrays/studio/array-string-conversion/array-testing.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ let protoArray3 = "space delimited string";
44
let protoArray4 = "Comma-spaces, might, require, typing, caution";
55

66
strings = [protoArray1, protoArray2, protoArray3, protoArray4];
7-
7+
console.log(protoArray1.includes(" "));
88
//2)
99
function reverseCommas() {
1010
//TODO: 1. create and instantiate your variables.
11-
let check;
12-
let output;
11+
//let check;
12+
let output = protoArray1.split(",").reverse().join(",");
1313
//TODO: 2. write the code required for this step
1414

1515
//NOTE: For the code to run properly, you must return your output. this needs to be the final line of code within the function's { }.

0 commit comments

Comments
 (0)