how can an alert (prompt etc) return true/false? doesn't it merely display? This is related to the last quiz; chapter 7. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

how can an alert (prompt etc) return true/false? doesn't it merely display? This is related to the last quiz; chapter 7.

alerts, prompts, and booleans

3rd Oct 2016, 6:37 PM
ixnayOntheAmScray
2 Réponses
+ 1
rubbish question
4th Oct 2016, 9:53 AM
Huzaifa
0
What if you wanted to see if someone clicked ok or cancel on that prompt? You would then check to see if the ok button returned true. If it did return true, then the cancel button must be false. You see where I am going with this?
3rd Oct 2016, 11:06 PM
Mythos