Question: Javascript program need to fix it.giving error as present not defined. Pls read the question(I have been posting this question many times and nobody is
Javascript program need to fix it.giving error as present not defined.
Pls read the question(I have been posting this question many times and nobody is reading the question and sending wrong answers.Pls do as basic not complex).Write another 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.
function calcAge(present) {
console.log(present);
}
calcAge(current){
var today = 2017;
var birthYear=1969;
var age = today - birthYear;
return age; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
