Skip to content

Solution/m1 006 #36

New issue

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

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

Already on GitHub? Sign in to your account

Closed
wants to merge 21 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
solution m1-004
  • Loading branch information
saratemwhy committed Sep 30, 2023
commit 008b2efd1ac7c1e9b0ef55886de1212aa5e585a9
16 changes: 15 additions & 1 deletion projects/004-units-of-time/js/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
console.log('ciao');
let ask_days = prompt("Inserisci i giorni: ");
let ask_hours = prompt("Inserisci le ore: ");
let ask_minutes = prompt("Inserisci i minuti: ");
let ask_seconds = prompt("Inserisci i secondi: ");


function resultSeconds (ask_days, ask_hours, ask_minutes, ask_seconds) {
return((ask_days*86400)+(ask_hours*3600)+(ask_minutes*60)+(ask_seconds*1));
}



console.log(resultSeconds(ask_days, ask_hours, ask_minutes, ask_seconds));