Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="description" content="[add your bin description]">
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- </head>
- <body>
- <script id="jsbin-javascript">
- // Fuzione calcolo secondi a partire dalle ore
- "use strict";
- function hoursToSeconds(hours) {
- return hours * 3600;
- }
- var ore = prompt("inserisci ore");
- var result = hoursToSeconds(parseInt(ore));
- console.log(result);
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">// Fuzione calcolo secondi a partire dalle ore
- function hoursToSeconds(hours){
- return hours*3600;
- }
- var ore = prompt("inserisci ore");
- var result = hoursToSeconds(parseInt(ore));
- console.log(result);</script></body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement