My script does not work on Sololearn Editor | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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