+ 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);

28th May 2019, 2:28 AM
H </07>đŸ”„
H </07>đŸ”„ - avatar
1 Answer
28th May 2019, 2:52 AM
Andrei Călinescu
Andrei Călinescu - avatar