我或你都可以 (逻辑或操作符)
任务
在右边编辑器中第10行补充代码,在“jq1=”后输入numa>numb || numa==numb,看看结果是什么。
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>逻辑或</title> <script type="text/javascript"> var numa,numb,jq1; numa=50; numb=55; jq1= numa>numb || numa==numb; document.write("jq1的值是:"+jq1+"<br>") </script> </head> <body> </body> </html>