javaScript程序执行结果
1.vari=32;varj=33;alert(i+j);alert(i+"-"+j);2.vari=1;while(i<=6){document.write("<hr/...
1.
var i=32;
var j=33;
alert(i+j);
alert(i+ "-" +j);
2.
var i=1;
while(i<=6){
document.write("<hr/>");
i+=2;
}
3.下列语句执行完毕后,变量product的值是?
var product="21" *"2";
4.
var n=17;
binary_string=n.toString(2);
octal_string="0" +n.toString(8);
hex_string="0x" +n.toString(16);
其中binary_string,octal_string和hex_string存储值依次是?
对的话马上给分 展开
var i=32;
var j=33;
alert(i+j);
alert(i+ "-" +j);
2.
var i=1;
while(i<=6){
document.write("<hr/>");
i+=2;
}
3.下列语句执行完毕后,变量product的值是?
var product="21" *"2";
4.
var n=17;
binary_string=n.toString(2);
octal_string="0" +n.toString(8);
hex_string="0x" +n.toString(16);
其中binary_string,octal_string和hex_string存储值依次是?
对的话马上给分 展开
2个回答
展开全部
65
32-33
7
42
10001
021
0x11
<script type="text/javascript">
var i=32;
var j=33;
document.write(i+j);
document.write("<br>");
document.write(i+ "-" +j);
document.write("<br>");
var i=1;
while(i<=6){
i+=2;
}
document.write(i);
document.write("<br>");
var product="21" *"2";
document.write(product);
document.write("<br>");
var n=17;
binary_string=n.toString(2);
octal_string="0" +n.toString(8);
hex_string="0x" +n.toString(16);
document.write(binary_string);
document.write("<br>");
document.write(octal_string);
document.write("<br>");
document.write(hex_string);
document.write("<br>");
</script>
32-33
7
42
10001
021
0x11
<script type="text/javascript">
var i=32;
var j=33;
document.write(i+j);
document.write("<br>");
document.write(i+ "-" +j);
document.write("<br>");
var i=1;
while(i<=6){
i+=2;
}
document.write(i);
document.write("<br>");
var product="21" *"2";
document.write(product);
document.write("<br>");
var n=17;
binary_string=n.toString(2);
octal_string="0" +n.toString(8);
hex_string="0x" +n.toString(16);
document.write(binary_string);
document.write("<br>");
document.write(octal_string);
document.write("<br>");
document.write(hex_string);
document.write("<br>");
</script>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询