HTML/CSS/JavaScript在线编辑器-AI悦创·长期招收编程一对一学员,微信:Jiabcdefh

x
 
<!DOCTYPE html>
<html>
<body>
<h1>JS的 if...else...</h1>
<script>
    let bestchoice = 'bornforthis.cn';
    if (bestchoice === 'bornforthi.com') {
                alert('随时随地学编程');
    } else {
                alert('容我再想想');
    }
</script>
</body>
</html>