diff --git a/Lesson10/.gitignore b/Lesson10/.gitignore old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/.babelrc b/Lesson10/01-first-class/.babelrc old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/example-1-functions-as-values.js b/Lesson10/01-first-class/example-1-functions-as-values.js old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/example-10-this-react-issues.html b/Lesson10/01-first-class/example-10-this-react-issues.html old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/example-10-this-react-issues.js b/Lesson10/01-first-class/example-10-this-react-issues.js old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/example-2-inversion-of-control.js b/Lesson10/01-first-class/example-2-inversion-of-control.js old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/example-3-add-event-listener.js b/Lesson10/01-first-class/example-3-add-event-listener.js old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/example-4-fs-readdir-callback.js b/Lesson10/01-first-class/example-4-fs-readdir-callback.js old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/example-5-fetch-then.js b/Lesson10/01-first-class/example-5-fetch-then.js old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/example-6-fs-readdir-promise.js b/Lesson10/01-first-class/example-6-fs-readdir-promise.js old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/example-7-array-first-class.js b/Lesson10/01-first-class/example-7-array-first-class.js old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/example-8-parent-child-react.html b/Lesson10/01-first-class/example-8-parent-child-react.html old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/example-8-parent-child-react.js b/Lesson10/01-first-class/example-8-parent-child-react.js old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/example-9-child-parent-react.html b/Lesson10/01-first-class/example-9-child-parent-react.html old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/example-9-child-parent-react.js b/Lesson10/01-first-class/example-9-child-parent-react.js old mode 100644 new mode 100755 diff --git a/Lesson10/01-first-class/exercise-1-re-implement-array-methods-start.js b/Lesson10/01-first-class/exercise-1-re-implement-array-methods-start.js deleted file mode 100644 index cfde125..0000000 --- a/Lesson10/01-first-class/exercise-1-re-implement-array-methods-start.js +++ /dev/null @@ -1,20 +0,0 @@ -function includes(array, needle) { - // Includes implementation -} - -function indexOf(array, needle) { - // IndexOf implementation -} - -function join(array, delimiter) { - // Join implementation -} - -console.assert(includes(['a', 'b', 'c'], 'c')); -console.assert(!includes(['a', 'b', 'c'], 'd')); - -console.assert(indexOf([1, 2, 3], 2) === 1); -console.assert(indexOf([1, 2, 3], 10) === -1); - -console.assert(join(['a', 'b', 'c'], '') === 'abc'); -console.assert(join([1, 2, 3], ',') === '1,2,3'); diff --git a/Lesson10/01-first-class/exercise-1-re-implement-array-methods.js b/Lesson10/01-first-class/exercise-1-re-implement-array-methods.js deleted file mode 100644 index 6186b1c..0000000 --- a/Lesson10/01-first-class/exercise-1-re-implement-array-methods.js +++ /dev/null @@ -1,20 +0,0 @@ -function includes(array, needle) { - return array.some(el => el === needle); -} - -function indexOf(array, needle) { - return array.findIndex(el => el === needle); -} - -function join(array, delimiter) { - return array.reduce((acc, curr) => acc + delimiter + curr); -} - -console.assert(includes(['a', 'b', 'c'], 'c')); -console.assert(!includes(['a', 'b', 'c'], 'd')); - -console.assert(indexOf([1, 2, 3], 2) === 1); -console.assert(indexOf([1, 2, 3], 10) === -1); - -console.assert(join(['a', 'b', 'c'], '') === 'abc'); -console.assert(join([1, 2, 3], ',') === '1,2,3'); diff --git a/Lesson10/01-first-class/exercise-3-on-checkout-prop-start.html b/Lesson10/01-first-class/exercise-3-on-checkout-prop-start.html deleted file mode 100644 index 2620009..0000000 --- a/Lesson10/01-first-class/exercise-3-on-checkout-prop-start.html +++ /dev/null @@ -1,2 +0,0 @@ -
-