JavaScript

Fran Canete
Fran Canete
7,462 Points

yearsAlive: this is what I got

const secsPerMin = 60;
const minsPerHour = 60;
const hoursPerDay = 24;
const daysPerWeek = 7;
const weeksPerYear = 52;

const secondsPerDay = (hoursPerDay * minsPerHour) * secsPerMin

console.log(`There are ${secondsPerDay} seconds in a day.`);

let name = prompt("What's your name?");
let age = prompt("how old are you?");
const secondsAlive = age * weeksPerYear * daysPerWeek * hoursPerDay * minsPerHour * secsPerMin

console.log(`Hello ${name}, you've been alive for more than ${secondsAlive} seconds`);