diff --git a/homework.txt b/homework.txt new file mode 100644 index 0000000..89f6616 --- /dev/null +++ b/homework.txt @@ -0,0 +1,8 @@ +solution The Age Calculator +var currentYear = 2019; +var birthYear = 1987; +//substract birth year from current year to get age +var age = currentYear - birthYear; +//use srting concatonation + console.log("You are" +age+ " years young."); +console.log(`You are ${age}years young.`);