scrimba
The Weekly Web Dev Challenge
The Weekly Web Dev Challenge: Dog Years Converter ๐Ÿถ
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

The Weekly Web Dev Challenge: Dog Years Converter ๐Ÿถ
AboutCommentsNotes
The Weekly Web Dev Challenge: Dog Years Converter ๐Ÿถ
Expand for more info
index.js
run
preview
console
/*
DESCRIPTION:
In this challenge, you are curious about how old you would be in dog years.
You are expected to write JavaScript code that will convert any human age
to dog years. When a user enters a human age into the calculator and pressed
โ€˜convert me to dog yearsโ€™, the new dog years age should show up in the space
below it.

On average, a dogโ€™s first year on the planet worth is the equivalent of 10.5
human years.

event listeners, getElementById, operators

*/

// Write your code here ๐Ÿ‘‡


/*

DETAILED INSTRUCTIONS
1. pick out the neccesary elements from the HTML
2. use the input value and convert it into dog years on 'click'
3. display the result in the h1 tag

STRETCH GOALS:
- Can you convert your age into dog years, months and days?
- Can you improve the overall design?

*/
Console
/index.html
-3:09