+ 5

What should we write in javascript so it alerts hello on click.

https://code.sololearn.com/WpyQNglSu4Bz/?ref=app

9th Aug 2019, 6:14 AM
THE CRAZY ONE ✌️
THE CRAZY ONE ✌️ - avatar
7 Respostas
+ 12
Copy and paste: <body> <button onclick="greet();" > click </button> <script> let greet = () => alert("hello"); </script> </body>
9th Aug 2019, 7:27 AM
Вап
+ 2
use function alert() and event click
9th Aug 2019, 6:27 AM
Thanh
Thanh - avatar
+ 2
Thanks guys ...
9th Aug 2019, 10:15 AM
THE CRAZY ONE ✌️
THE CRAZY ONE ✌️ - avatar
+ 1
Many learn
13th Aug 2019, 2:42 AM
ALIS
0
2019-08-22 06:15:06 musim 11  CS 50216 Out #1_145 BARING < UMTS,HSPA+>  Over<lac=33341,cid=2274077 UMTS,HSPA> DIALING#ALERTING#ACTIVE#DISCONNECTED# -88 channle=65535 bsic=65535 bank=65535 signal=65535 quality=65535 sinar=65535SRVCC:Nor SRVCC 255 timeOtoN =0 timeDtoN =2533 timeAtoN =410 callstyle =108 speechCodec =2
21st Aug 2019, 11:49 PM
[No Name]