0

How do I remove undefined value in JS?

How can I remove the undefined here? https://code.sololearn.com/WNkWegYD5YsI/#js

25th Apr 2020, 5:56 PM
Danial Azadpour
Danial Azadpour - avatar
6 Respostas
28th Apr 2020, 2:42 AM
narayanaprasad
narayanaprasad - avatar
0
window.onload=function(){ Js code goes here }
25th Apr 2020, 6:00 PM
Abhay
Abhay - avatar
0
Abhay That didn't remove "undefined" text.
25th Apr 2020, 6:08 PM
Danial Azadpour
Danial Azadpour - avatar
0
just call the function , don't use document.write
25th Apr 2020, 6:09 PM
Abhay
Abhay - avatar
0
Thanks, I changed the last return and it fixed the issue!
25th Apr 2020, 6:12 PM
Danial Azadpour
Danial Azadpour - avatar
0
And you don't have to write all that again and again ,just make it simple as I answered in the previous question
25th Apr 2020, 6:12 PM
Abhay
Abhay - avatar