+ 1

Why doesn't the equal work?

It says undefined every time. Can you help me? https://code.sololearn.com/W916qpLEF36I/?ref=app

14th Jul 2019, 9:59 PM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar
3 Respuestas
+ 3
Don't use document.getElementById("res").value. That property is undefined. Use either .innerHTML or .innerText
14th Jul 2019, 11:30 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
Thank you!
14th Jul 2019, 11:30 PM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar
+ 1
There's another question I made if you know the answer...
15th Jul 2019, 12:13 AM
Rishan [da_coder, semi-active]
Rishan  [da_coder, semi-active] - avatar