My interest was piqued since apparently those Javascript additions are not yet available in Google's Chrome.
Besides many dated scripts which link the Browser navigator information to a javscript version, I found this interesting way of using script <script>-elements specified with incremental language attributes. Within it, one simply defines the javascript version. If the script element is specified above the own Javascript version, it is ignored:
<script language=”Javascript1.5″>jsver = 1.5;</script>
It turns out Chrome v15 should implement JS version 1.7 according to my script, and actually support array comprehensions.
To quickly retrieve the javascript version of your browser, I wrote the following script. Feel free to copy and paste it if you require. The js-version will then be written to the javascript console .

0 comments:
Post a Comment