Question: What is wrong with the following code? How would you fix it? toDays(21); function toDays(years) { var time; time = 365*years; return time; } document.write(My
What is wrong with the following code? How would you fix it?
toDays(21);
function toDays(years)
{
var time;
time = 365*years;
return time;
}
document.write("My age is " + time);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
