Idk how this works. Any suggestions? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Idk how this works. Any suggestions?

https://code.sololearn.com/WqS2nSLBW465/?ref=app

21st Mar 2022, 3:53 AM
vredi yanto
vredi yanto - avatar
3 ответов
+ 3
Because youre assinging true value into result. And result is true thats why its consoling "thank you for ...." It shoud be If(result != true){ //clicked.. its means the user wants to cancel the purchase }
21st Mar 2022, 4:06 AM
ㅤㅤㅤㅤ
ㅤㅤㅤㅤ - avatar
+ 1
Very obvious suggestion: Find out how it works
21st Mar 2022, 6:14 AM
Shadoff
Shadoff - avatar
0
Tysm i forgot to add !. 😅😅😅
21st Mar 2022, 4:34 PM
vredi yanto
vredi yanto - avatar