一:js支持 Unicode 字符集,所以可以用中文命名函数。 
二:js 在Var中没有初始化的变量,默认为undefined 
三:对于未声明也未赋值的变量,如果直接使用,会抛出一个系统级别的Error,如果用typeof(typeof是种类型运算符)操作来说,不论是否已经被声明,都将返回一个字符串”undefined”; 
例: 
//a 未声明 
alert(typeof(a));//undefined 
alert(a);//Error 
四:算术运算符。用“+”可以较方便地将一个数值转换成字符串,具体操作是将操作是将这个数值加上一个空串(也可不写)。 
例: 
Var a=2.96; 
Var b=1.0; 
Alert(a+””+b);//得到字符串”2.961” 
用“-“可用来将字符串装换成数值,具体操作是将这个字符串减去一个数值 0 
Var a=”2.96”; 
alert(a+1);//得到字符串”2.961”(将数值强制转换成字符串) 
alert(a-0+1);//得到数值3.96 
以下是我做的一个example: 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>js</title>
<script language="javascript">
x=5+5;
document.write(x+"<br>");
x="5"+"1";
document.write(x+"<br>");
x="5"+5;
document.write(x+"<br>");
x="10"-5;
document.write(x+"<br>");
</script>
</head>
<body>
</body>
</html>
结果: 
10 
51 
55 
5