0
How do I remove undefined value in JS?
How can I remove the undefined here? https://code.sololearn.com/WNkWegYD5YsI/#js
6 Answers
+ 1
You may find answer in https://dmitripavlutin.com/7-tips-to-handle-undefined-in-javascript/
0
window.onload=function(){
Js code goes here
}
0
Abhay That didn't remove "undefined" text.
0
just call the function , don't use document.write
0
Thanks, I changed the last return and it fixed the issue!
0
And you don't have to write all that again and again ,just make it simple as I answered in the previous question