Skip to content

Commit cf5e521

Browse files
committed
difficulty with the middle part
1 parent 34068b3 commit cf5e521

File tree

6,886 files changed

+760927
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,886 files changed

+760927
-11
lines changed

arrays/package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,48 @@ let protoArray4 = "Comma-spaces, might, require, typing, caution";
55

66
strings = [protoArray1, protoArray2, protoArray3, protoArray4];
77

8+
9+
810
//2)
911
function reverseCommas() {
1012
//TODO: 1. create and instantiate your variables.
11-
let check;
12-
let output;
13+
let check = protoArray1.split(',');
14+
let output = '';
1315
//TODO: 2. write the code required for this step
16+
output = protoArray1.reverse().join();
17+
1418

1519
//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 { }.
1620
return output;
1721
}
1822

1923
//3)
2024
function semiDash() {
21-
let check;
22-
let output;
25+
let check =protoArray2.split(';');
26+
let output = '';
2327
//TODO: write the code required for this step
28+
output = check.sort().join('-');
2429

2530

2631
return output;
2732
}
2833

2934
//4)
3035
function reverseSpaces() {
31-
let check;
32-
let output;
36+
let check = protoArray3.split(' ');
37+
let output = '';
3338
//TODO: write the code required for this step
3439

35-
return output;
40+
return output = check.sort.reverse().join(' ');
3641
}
3742

3843
//5)
3944
function commaSpace() {
40-
let check;
41-
let output;
45+
let check = protoArray4.split(, );
46+
let output = '';
4247
//TODO: write the code required for this step
4348

44-
return output;
49+
return output = check.sort.reverse.join(",");
4550
}
4651

4752
// NOTE: Don't add or modify any code below this line or your program might not run as expected.

arrays/studio/array-string-conversion/node_modules/.bin/acorn

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arrays/studio/array-string-conversion/node_modules/.bin/acorn.cmd

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arrays/studio/array-string-conversion/node_modules/.bin/acorn.ps1

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arrays/studio/array-string-conversion/node_modules/.bin/browserslist

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arrays/studio/array-string-conversion/node_modules/.bin/browserslist.cmd

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arrays/studio/array-string-conversion/node_modules/.bin/browserslist.ps1

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arrays/studio/array-string-conversion/node_modules/.bin/create-jest

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arrays/studio/array-string-conversion/node_modules/.bin/create-jest.cmd

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arrays/studio/array-string-conversion/node_modules/.bin/create-jest.ps1

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arrays/studio/array-string-conversion/node_modules/.bin/escodegen

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arrays/studio/array-string-conversion/node_modules/.bin/escodegen.cmd

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arrays/studio/array-string-conversion/node_modules/.bin/escodegen.ps1

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arrays/studio/array-string-conversion/node_modules/.bin/esgenerate

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arrays/studio/array-string-conversion/node_modules/.bin/esgenerate.cmd

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arrays/studio/array-string-conversion/node_modules/.bin/esgenerate.ps1

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)