+ 1

How can I make a button that when I clicked on it it write's 1 and when I clicked on it again it get's 2 and...

9th Feb 2018, 9:50 PM
Sina
Sina - avatar
3 Answers
+ 1
web
9th Feb 2018, 9:58 PM
Sina
Sina - avatar
+ 1
<script> var a=1; function clicked(){ if (a==1){a+=1; return 1;} return 2; } </script> think about it ;)
9th Feb 2018, 10:04 PM
Женя Курятов
Женя Курятов - avatar
0
What is function * foo() ??
25th Feb 2018, 8:47 PM
Sina
Sina - avatar