Why this code is not working? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
22nd May 2023, 7:29 PM
zain Shendy
5 Answers
+ 3
You need to take the value from the input and I also changed your function declaration at the end. https://code.sololearn.com/WgxM5gILOlNF/?ref=app
22nd May 2023, 7:44 PM
Ausgrindtube
Ausgrindtube - avatar
+ 2
Wrap your JavaScript code in window.onload = function(){ //your code }
22nd May 2023, 7:31 PM
Ausgrindtube
Ausgrindtube - avatar
+ 2
Happy I could help! Enjoy your learning and coding
22nd May 2023, 8:01 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Thank you, I'm was so confused on it but thanks👍
22nd May 2023, 7:47 PM
zain Shendy
0
Did but still not working
22nd May 2023, 7:33 PM
zain Shendy