+ 3
My script does not work on Sololearn Editor
This script does not work on the Sololearn! meanwhile, it works well on my editor! Could you guys please tell me how to make the script works without showing "Null"! function calcDays(age){ "use strict" var year = 365; return age * year; } var dAge = prompt("Insert your age"); document.getElementById("test").innerHTML = calcDays(dAge);
1 Answer
+ 1
Here's the solution:
https://code.sololearn.com/WFhofeEI3U3h/?ref=app