0

How does the alert box in web design work ?

(Sometimes there is error)

17th Jul 2019, 10:20 AM
Ryufath Soepeno
Ryufath Soepeno - avatar
2 ответов
+ 5
error? can you post code.? https://www.sololearn.com/learn/JavaScript/1149/?ref=app got it 😄 https://code.sololearn.com/WR4nRwu0KqO4/?ref=app this is your code 😋 in which you are getting error. remember if you want to display a string in alert you need to enclose the string in double quotes like alert("Something cool "); ok? happy learning :)
17th Jul 2019, 10:25 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 1
Hey man, you forgot to put your text between ( " " ) and also the semi colon in the end (;) It should be like this: alert(" your message"); 👍
17th Jul 2019, 12:52 PM
SHIVAM
SHIVAM - avatar