Home >
front end > Why I set up my web page input is not my answer for loop will carry out conditions, are winning boss
Why I set up my web page input is not my answer for loop will carry out conditions, are winning boss
<meta charset="utf-8" & gt;
<meta name="viewport" content="width=device - width, initial - scale=1.0" & gt;
<meta HTTP - equiv="X - UA - Compatible" content="ie=edge" & gt;
Document <script>
Var myname=prompt (" please input your name);
If (myname='Andy lau) {
Alert (' congratulations for yoyo winning five dollars');
} else {
Alert (' it's a pity that the activities you do not have the winning ');
}
</script>
<body>