Menu
Coddy logo textTech

Recap - Till 120

Part of the Fundamentals section of Coddy's JavaScript journey — lesson 32 of 77.

challenge icon

Challenge

Beginner

Write a program that gets the user's age as input (given).

The program will output (print) the number of missing years till 120 (in a specific format, shown below).

For example, for input 25, the expected output is "95 years till 120".

Make sure to not print anything else!

Try it yourself

let age = parseInt(inp); // Don't change this line
// Type your code below

All lessons in Fundamentals