How does the alert box in web design work ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
+ 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