+ 1

I need help! I have no idea why my calculator is not working, it shows an error in line 4 in JS, and I have no idea how fix it!

https://sololearn.com/compiler-playground/Wv8Ex0z75XDz/?ref=app

13th Dec 2024, 9:21 AM
Seo Yool
Seo Yool - avatar
4 Réponses
+ 1
the console outputs an error in line 4, and I fixed it, but the console again showed an error in line 5, then 6 and so on, so I have no idea how to fix it 😔 😕... this is my first time working with neumorphism, so it would be lovely if anyone could help me out with this problem ☺️
13th Dec 2024, 9:24 AM
Seo Yool
Seo Yool - avatar
+ 1
in your js, put display variable assignment inside onload function. onload = () => { let display = document.getElementById('display'); }
13th Dec 2024, 1:07 PM
Bob_Li
Bob_Li - avatar
+ 1
Zvi Android app users gets error messages without the onload hack.
13th Dec 2024, 2:20 PM
Bob_Li
Bob_Li - avatar
0
Works perfectly for me. Gorgeous calculator, by the way.
13th Dec 2024, 2:10 PM
Zvi
Zvi - avatar