How does the alert box in web design work ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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