+ 1

What this button is not working [Javascript ] code problem

I Don't know why this time button is not working i try many times to solve it but it didn't solve the issue is that the button is not working please explain me why this happening see this code 👇👇👇 https://code.sololearn.com/W2qM7J71fe2t/?ref=app

30th Sep 2020, 8:20 AM
Smart Video Technical
Smart Video Technical - avatar
1 Answer
+ 3
<!DOCTYPE html> <html> <body> <button onclick="getElementById( 'demo' ).innerHTML=Date()">time</button> <p id="demo"></p> </body> </html> You had a "-" insted of "=".
30th Sep 2020, 8:23 AM
Artem 🇺🇦
Artem 🇺🇦 - avatar