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!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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