AntonV0 / dog-years

Project #21 of Codecademy's Full Stack Engineer Career Path

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dog Years

Project #21 from Codecademy's Full Stack Engineer Career Path

By Anton Vlasenko (AntonV0)

Project Outline

By typing a value in the myAge variable, this JavaScript app logs your age in dog years. Dog years are calculated using arithmetic operators with the following logic:

  • First 2 years of a dog's life count as 10.5 dog years each
  • Each year after equates to 4 dog years

What I Learned

  • Arithmetic operator shorthand *=
  • Reassinging variables
  • The .toLowerCase() string method

About

Project #21 of Codecademy's Full Stack Engineer Career Path

License:MIT License


Languages

Language:JavaScript 100.0%