Question: Write a simple program in javascript using function called calcAge. This function should take one parameter, a year, and it should return the implied age
Write a simple program in javascript using function called calcAge. This function should take one parameter, a year, and it should return the implied age of Linus Torvalds. Call the function passing the current year as the parameter.(dont have to calculate days or months.just the year by declaring birthyear of linus in variable)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
