const name = prompt (“What is your name?”);
const age = prompt (“How old are you?”);

let earlyYears = 2;

let laterYears = age – 2;

laterYears *=4;

let myAgeInDogYears = earlyYears + laterYears;

console.log(“Hello ” + name + ” your age in dog years is ” + myAgeInDogYears);

Advertisements