diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..57f1cb2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/.idea/
\ No newline at end of file
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..8130936
--- /dev/null
+++ b/index.html
@@ -0,0 +1,11 @@
+
+
+
+
+
+ Lesson 6
+
+
+
+
+
\ No newline at end of file
diff --git a/main.js b/main.js
new file mode 100644
index 0000000..39acdfa
--- /dev/null
+++ b/main.js
@@ -0,0 +1,20 @@
+//Задача 1
+
+function sum(value) {
+ let result = (nextValue) => {
+ value += nextValue;
+ return result;
+ };
+ result.toString = () => value;
+ return result;
+}
+
+console.log( sum(1)(2)(3) );
+
+//Задача 2
+
+function summ(value) {
+ return nextValue => nextValue ? summ(value +nextValue) : value;
+}
+
+console.log( summ(1)(2)(3)(4)(5)(6)());
\ No newline at end of file