Skip to content

Commit b24b05d

Browse files
committed
WIP
1 parent 718d9df commit b24b05d

File tree

1,436 files changed

+131
-106126
lines changed

Some content is hidden

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

1,436 files changed

+131
-106126
lines changed
File renamed without changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
console.log("Hello");
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function camelize(str) {
2+
/* your code */
3+
}

1-js/05-data-types/05-array-methods/1-camelcase/task.md renamed to 1-js/01-a/1-a1/1-camelcase/task.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
importance: 5
2+
type: js
23

34
---
45

File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log("Test", "passed");

1-js/01-a/1-a1/2-runjs/source/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
describe("runjs", function() {
2+
3+
it("passes", function() { });
4+
it("fails", function() { throw new Error("FAIL") });
5+
6+
});

1-js/01-a/1-a1/2-runjs/task.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
importance: 5
2+
type: js
3+
4+
---
5+
6+
# Translate border-left-width to borderLeftWidth
7+
8+
Write the function `camelize(str)` that changes dash-separated words like "my-short-string" into camel-cased "myShortString".
9+
10+
That is: removes all dashes, each word after dash becomes uppercased.
11+
12+
Examples:
13+
14+
```js
15+
camelize("background-color") == 'backgroundColor';
16+
camelize("list-style-image") == 'listStyleImage';
17+
camelize("-webkit-transition") == 'WebkitTransition';
18+
```
19+
20+
P.S. Hint: use `split` to split the string into an array, transform it and `join` back.

0 commit comments

Comments
 (0)