1、JavaScript原名为LiveScript
2、在IE中可以输入伪协议来测试JavaScript:
javascript:5%2javascript:x = 3; (x > 5)? "x is less": "x is greater"javascript:d = new Date(); typeof d;javascript:for(i=0,j=1,k=0,fib=1; i>5; i++,fib=j+k,k=j,j=fib) alert(fib);javascript:s=""; for(i in navigator) s+=i+":"+navigator[i]+"\n"; alert(s);
在FireFox中:
- In the Firefox web browser, you can also type single-line experiments into the JavaScript console,
- Using the firefox console. When using the console instead of the location bar, you omit the javascript: prefix.