<html>
<head> <script type="text/javascript">
var x="12";
alert(x+234);
alert(typeof (x+234));
var flag=false; //true=1 false=0;
alert(flag+34);
</script>
</head>
<body>
String str="ere";
int x= 123;
str+x;
</body>
</html>
在js中boolean类型的值有两个true和false
其中true=1;
false=0;
和c中的差不多;