Skip to content

Dzień 1 #4

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
6 changes: 5 additions & 1 deletion app/zadanie01.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
//Twój kod
//Twój kod
console.log('Radek Micinski');
let myTimeout = setTimeout(()=>{
console.log("Wita się z node.js")
},5000)
11 changes: 10 additions & 1 deletion app/zadanie02.js
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
//Twój kod
// //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<arr.length;i++){
const myTimeoutAutomated = setTimeout(()=>{
console.log(arr[i])
}, i*1000)
}
8 changes: 7 additions & 1 deletion app/zadanie03.js
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
//Twój kod
//Twój kod

let result = 0;
for (let i=2; i<process.argv.length;i++){
result = result + Number(process.argv[i])
}
console.log(result)
10 changes: 9 additions & 1 deletion app/zadanieDnia.js
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
//Twój kod
//Twój kod



for(let i = 2; i<process.argv.length; i++){
setTimeout(()=>{
console.log(process.argv[i])
}, Number(process.argv[i])*1000)
}