From f3f3a5ef0cb318a9ce7b671baa75a51030af9355 Mon Sep 17 00:00:00 2001 From: RadekM86 Date: Mon, 29 Jan 2018 20:44:16 +0100 Subject: [PATCH 1/5] First commit --- app/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 app/.gitignore diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file From 13aa3dc09f6de7a00e7cc925ccf06be7819f9779 Mon Sep 17 00:00:00 2001 From: RadekM86 Date: Mon, 29 Jan 2018 20:56:15 +0100 Subject: [PATCH 2/5] Zad 1-2 --- app/zadanie01.js | 6 +++++- app/zadanie02.js | 24 +++++++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/app/zadanie01.js b/app/zadanie01.js index 8c20173..164b1aa 100644 --- a/app/zadanie01.js +++ b/app/zadanie01.js @@ -1 +1,5 @@ -//Twój kod \ No newline at end of file +//Twój kod +console.log('Radek Micinski'); +let myTimeout = setTimeout(()=>{ + console.log("Wita się z node.js") +},5000) \ No newline at end of file diff --git a/app/zadanie02.js b/app/zadanie02.js index 8c20173..d7def01 100644 --- a/app/zadanie02.js +++ b/app/zadanie02.js @@ -1 +1,23 @@ -//Twój kod \ No newline at end of file +//Twój kod +console.log('Witam'); +let myTimeout1 = setTimeout(()=>{ + console.log("się") +},1000); +let myTimeout2 = setTimeout(()=>{ + console.log("z") +},2000); +let myTimeout3 = setTimeout(()=>{ + console.log("programem") +},3000); +let myTimeout4 = setTimeout(()=>{ + console.log("Node.js") +},4000); +let myTimeout5 = setTimeout(()=>{ + console.log("w konsoli") +},5000); +let myTimeout6 = setTimeout(()=>{ + console.log("i korzystam") +},6000); +let myTimeout7 = setTimeout(()=>{ + console.log("z funkcji czasu!") +},7000); \ No newline at end of file From e26ea493bf53091250b0d5cad15c95b76914b933 Mon Sep 17 00:00:00 2001 From: RadekM86 Date: Mon, 29 Jan 2018 21:10:49 +0100 Subject: [PATCH 3/5] Zadanie 3 --- app/zadanie03.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/zadanie03.js b/app/zadanie03.js index 8c20173..128ae1f 100644 --- a/app/zadanie03.js +++ b/app/zadanie03.js @@ -1 +1,7 @@ -//Twój kod \ No newline at end of file +//Twój kod + +let result = 0; +for (let i=2; i Date: Mon, 29 Jan 2018 21:25:55 +0100 Subject: [PATCH 4/5] zadanieDnia zrobione:) --- app/zadanieDnia.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/zadanieDnia.js b/app/zadanieDnia.js index 8c20173..fd6929f 100644 --- a/app/zadanieDnia.js +++ b/app/zadanieDnia.js @@ -1 +1,9 @@ -//Twój kod \ No newline at end of file +//Twój kod + + + +for(let i = 2; i{ + console.log(process.argv[i]) + }, Number(process.argv[i])*1000) +} \ No newline at end of file From 26c5dbbcc701642d530e6e957ecb266acea019b0 Mon Sep 17 00:00:00 2001 From: RadekM86 Date: Tue, 30 Jan 2018 17:41:44 +0100 Subject: [PATCH 5/5] Zautomatyzowane zadanie :) --- app/zadanie02.js | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/app/zadanie02.js b/app/zadanie02.js index d7def01..da9e8b6 100644 --- a/app/zadanie02.js +++ b/app/zadanie02.js @@ -1,23 +1,10 @@ -//Twój kod -console.log('Witam'); -let myTimeout1 = setTimeout(()=>{ - console.log("się") -},1000); -let myTimeout2 = setTimeout(()=>{ - console.log("z") -},2000); -let myTimeout3 = setTimeout(()=>{ - console.log("programem") -},3000); -let myTimeout4 = setTimeout(()=>{ - console.log("Node.js") -},4000); -let myTimeout5 = setTimeout(()=>{ - console.log("w konsoli") -},5000); -let myTimeout6 = setTimeout(()=>{ - console.log("i korzystam") -},6000); -let myTimeout7 = setTimeout(()=>{ - console.log("z funkcji czasu!") -},7000); \ No newline at end of file +// //Twój kod +//wersja 2 + +const arr = ["Witam", "się", "z", "programem", "Node.js", "w konsoli", "i korzystam", "z funkcji czasu"] + +for(let i=0; i{ + console.log(arr[i]) + }, i*1000) +}