I'm getting my feet wet with JavaScript 1.7 (Firefox 2.0 only) and
messing around with it in the console, working through some of the
exercises given at http://developer.mozilla.org/en/docs...JavaScript_1.7
Looks like the "version" function isn't supported, at least not in the
Firefox console. So many of the new features - especially using the
"let" and "yield" keywords, as well as practical Array comprehensions
which depend on these keywords - are not accessible. Has anyone had
any luck turning on JS 1.7 in the Firefox JS Console?
Thanks,
David 13 1934
David Golightly wrote :
I'm getting my feet wet with JavaScript 1.7 (Firefox 2.0 only) and
messing around with it in the console, working through some of the
exercises given at http://developer.mozilla.org/en/docs...JavaScript_1.7
Looks like the "version" function isn't supported, at least not in the
Firefox console. So many of the new features - especially using the
"let" and "yield" keywords, as well as practical Array comprehensions
which depend on these keywords - are not accessible. Has anyone had
any luck turning on JS 1.7 in the Firefox JS Console?
Thanks,
David
You have to specify it in your code ...
<script type="application/javascript;version=1.7">
// code here
</script>
Default FF2 JS version is 1.6.
--
Naixn http://fma-fr.net
naixn wrote:
David Golightly wrote :
I'm getting my feet wet with JavaScript 1.7 (Firefox 2.0 only) and
messing around with it in the console, working through some of the
exercises given at http://developer.mozilla.org/en/docs...JavaScript_1.7
Looks like the "version" function isn't supported, at least not in the
Firefox console. So many of the new features - especially using the
"let" and "yield" keywords, as well as practical Array comprehensions
which depend on these keywords - are not accessible. Has anyone had
any luck turning on JS 1.7 in the Firefox JS Console?
Thanks,
David
You have to specify it in your code ...
<script type="application/javascript;version=1.7">
// code here
</script>
Default FF2 JS version is 1.6.
Yeah, I saw that - I was hoping though to get it working in the JS
console in Firefox, so I can't use a script tag for that. The docs say
to use the "version" function, but that isn't working for some reason -
"version" is not defined.
David Golightly wrote :
naixn wrote:
>David Golightly wrote :
>>I'm getting my feet wet with JavaScript 1.7 (Firefox 2.0 only) and messing around with it in the console, working through some of the exercises given at http://developer.mozilla.org/en/docs...JavaScript_1.7
Looks like the "version" function isn't supported, at least not in the Firefox console. So many of the new features - especially using the "let" and "yield" keywords, as well as practical Array comprehensions which depend on these keywords - are not accessible. Has anyone had any luck turning on JS 1.7 in the Firefox JS Console?
Thanks,
David
You have to specify it in your code ... <script type="application/javascript;version=1.7"> // code here </script>
Default FF2 JS version is 1.6.
Yeah, I saw that - I was hoping though to get it working in the JS
console in Firefox, so I can't use a script tag for that. The docs say
to use the "version" function, but that isn't working for some reason -
"version" is not defined.
Maybe you should use Firebug as the JavaScript console. Very useful (for
debugging), and all the more powerful ;)
--
Naixn http://fma-fr.net
naixn wrote:
David Golightly wrote :
naixn wrote:
David Golightly wrote : I'm getting my feet wet with JavaScript 1.7 (Firefox 2.0 only) and messing around with it in the console, working through some of the exercises given at http://developer.mozilla.org/en/docs...JavaScript_1.7
Looks like the "version" function isn't supported, at least not in the Firefox console. So many of the new features - especially using the "let" and "yield" keywords, as well as practical Array comprehensions which depend on these keywords - are not accessible. Has anyone had any luck turning on JS 1.7 in the Firefox JS Console?
Thanks,
David
You have to specify it in your code ...
<script type="application/javascript;version=1.7">
// code here
</script>
Default FF2 JS version is 1.6.
Yeah, I saw that - I was hoping though to get it working in the JS
console in Firefox, so I can't use a script tag for that. The docs say
to use the "version" function, but that isn't working for some reason -
"version" is not defined.
Maybe you should use Firebug as the JavaScript console. Very useful (for
debugging), and all the more powerful ;)
--
Naixn http://fma-fr.net
I am, actually, using Firebug. I can't live without it. But it
doesn't add JS 1.7 support by itself :)
David Golightly wrote :
>
I am, actually, using Firebug. I can't live without it. But it
doesn't add JS 1.7 support by itself :)
Sure not. But if I go in the firebug console and type :
a = 'aString';
b = 'bString';
[a, b] = [b, a];
I get :
a ='bString'
b ='aString'
This is clearly JS 1.7.
--
Naixn http://fma-fr.net
naixn wrote:
David Golightly wrote :
I am, actually, using Firebug. I can't live without it. But it
doesn't add JS 1.7 support by itself :)
Sure not. But if I go in the firebug console and type :
a = 'aString';
b = 'bString';
[a, b] = [b, a];
I get :
a ='bString'
b ='aString'
This is clearly JS 1.7.
--
Naixn http://fma-fr.net
Try:
function range(begin, end) {
for (let i = begin; i < end; ++i) {
yield i;
}
}
what do you get then?
David Golightly wrote :
naixn wrote:
>David Golightly wrote :
>>I am, actually, using Firebug. I can't live without it. But it doesn't add JS 1.7 support by itself :)
Sure not. But if I go in the firebug console and type : a = 'aString'; b = 'bString'; [a, b] = [b, a]; I get : a ='bString' b ='aString'
This is clearly JS 1.7.
-- Naixn http://fma-fr.net
Try:
function range(begin, end) {
for (let i = begin; i < end; ++i) {
yield i;
}
}
what do you get then?
In fact, I get
"missing ; after for-loop initializer"
which is the error I had with this function when not telling the browser I'm
using JS 1.7.
Strange... As [a, b] = [b, a]
is new from JS 1.7, as let/yield are...
Really strange.
--
Naixn http://fma-fr.net
David Golightly wrote :
I'm getting my feet wet with JavaScript 1.7 (Firefox 2.0 only) and
messing around with it in the console, working through some of the
exercises given at http://developer.mozilla.org/en/docs...JavaScript_1.7
Looks like the "version" function isn't supported, at least not in the
Firefox console. So many of the new features - especially using the
"let" and "yield" keywords, as well as practical Array comprehensions
which depend on these keywords - are not accessible. Has anyone had
any luck turning on JS 1.7 in the Firefox JS Console?
Thanks,
David
I've been looking in the doc... The version() function is only for the JS
shell.
see: http://developer.mozilla.org/en/docs...vaScript_shell
And let/yield are, in fact, keywords that needs JS1.7 to be specified, contrary
to the array manipulation ([a, b] = [b, a]), which doesn't need it...
Loonking for a way to set it to JS 1.7
(why is that you absolutely want to do it console mode? :p)
--
Naixn http://fma-fr.net
naixn wrote:
David Golightly wrote :
I'm getting my feet wet with JavaScript 1.7 (Firefox 2.0 only) and
messing around with it in the console, working through some of the
exercises given at http://developer.mozilla.org/en/docs...JavaScript_1.7
Looks like the "version" function isn't supported, at least not in the
Firefox console. So many of the new features - especially using the
"let" and "yield" keywords, as well as practical Array comprehensions
which depend on these keywords - are not accessible. Has anyone had
any luck turning on JS 1.7 in the Firefox JS Console?
Thanks,
David
I've been looking in the doc... The version() function is only for the JS
shell.
see: http://developer.mozilla.org/en/docs...vaScript_shell
And let/yield are, in fact, keywords that needs JS1.7 to be specified, contrary
to the array manipulation ([a, b] = [b, a]), which doesn't need it...
Loonking for a way to set it to JS 1.7
(why is that you absolutely want to do it console mode? :p)
No specific reason. Just wanted to test it out from the console
without downloading & building the shell, which I might just do anyway.
It just doesn't make a whole lot of sense for them to have new
features like this that simply aren't accessible from console mode, so
I was hoping someone else had already found a way around it.
David Golightly wrote :
naixn wrote:
>David Golightly wrote :
>>I'm getting my feet wet with JavaScript 1.7 (Firefox 2.0 only) and messing around with it in the console, working through some of the exercises given at http://developer.mozilla.org/en/docs...JavaScript_1.7
Looks like the "version" function isn't supported, at least not in the Firefox console. So many of the new features - especially using the "let" and "yield" keywords, as well as practical Array comprehensions which depend on these keywords - are not accessible. Has anyone had any luck turning on JS 1.7 in the Firefox JS Console?
Thanks,
David
I've been looking in the doc... The version() function is only for the JS shell. see: http://developer.mozilla.org/en/docs...vaScript_shell And let/yield are, in fact, keywords that needs JS1.7 to be specified, contrary to the array manipulation ([a, b] = [b, a]), which doesn't need it...
Loonking for a way to set it to JS 1.7
(why is that you absolutely want to do it console mode? :p)
No specific reason. Just wanted to test it out from the console
without downloading & building the shell, which I might just do anyway.
It just doesn't make a whole lot of sense for them to have new
features like this that simply aren't accessible from console mode, so
I was hoping someone else had already found a way around it.
Well... Instead of using the shell, why wouldn't you build a blank HTML page?
May be simplier.
Oh, i just saw Firebug 1.0 beta was available ! Did you know? http://getfirebug.com if not!
I was so waiting for it!!
--
Naixn http://fma-fr.net
naixn wrote :
>
Well... Instead of using the shell, why wouldn't you build a blank HTML
page?
May be simplier.
Oh, i just saw Firebug 1.0 beta was available ! Did you know? http://getfirebug.com if not!
I was so waiting for it!!
Oh, btw, Firebug 1 beta seems to get along with JS 1.7, though it seems not to
be perfect ... Maybe you should give a try.
I don't know if it's because I'm using Linux, but the design is absolutely not
the same as on the screens...
--
Naixn http://fma-fr.net
naixn wrote :
>
Oh, btw, Firebug 1 beta seems to get along with JS 1.7, though it seems
not to
be perfect ... Maybe you should give a try.
I don't know if it's because I'm using Linux, but the design is
absolutely not
the same as on the screens...
I got my answer: the graphical render is a bug on debian based linux...
Had to install SwiftFox via Automatix to get it work :p
--
Naixn http://fma-fr.net
David Golightly wrote:
I'm getting my feet wet with JavaScript 1.7 (Firefox 2.0 only) and
messing around with it in the console, working through some of the
exercises given at http://developer.mozilla.org/en/docs...JavaScript_1.7
Looks like the "version" function isn't supported, at least not in the
Firefox console.
version is a function the Spidermonkey shell supports. That shell is a
command line shell you can use if you compile Spidermonkey yourself. It
is not in any way related to the browser like Mozilla or Firefox and has
nothing to do with the JavaScript console or Error console those
browsers have.
To use JavaScript 1.7 in a host document like HTML or SVG use
<script type="text/javascript; version=1.7">
for the script element.
--
Martin Honnen http://JavaScript.FAQTs.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mahesh Padmanabhan |
last post by:
Hi,
When list comprehension was added to the language, I had a lot of
trouble understanding it but now that I am familiar with it, I am not
sure how I programmed in Python without it.
Now I...
|
by: Neuruss |
last post by:
I have a doubt regarding list comprehensions:
According to Mark Lutz in his book Learning Pyhon:
"...there is currently a substantial performance advantage to the
extra complexity in this case:...
|
by: Mike Meyer |
last post by:
Ok, we've added list comprehensions to the language, and seen that
they were good. We've added generator expressions to the language, and
seen that they were good as well.
I'm left a bit...
|
by: Steven Bethard |
last post by:
George Sakkis wrote:
> "Steven Bethard" <steven.bethard@gmail.com> wrote:
>> Dict comprehensions were recently rejected:
>> http://www.python.org/peps/pep-0274.html
>> The reason, of course,...
|
by: Lonnie Princehouse |
last post by:
List comprehensions appear to store their temporary result in a
variable named "_" (or presumably "_", "_" etc for nested
comprehensions)
In other words, there are variables being put into the...
|
by: cwdjrxyz |
last post by:
I just installed the new Firefox 2.0 browser without problems. This is
a major upgrade, and you need to go to the Firefox site and read the
release notes before you download it. There are a few...
|
by: Paul Rubin |
last post by:
I hadn't seem this before. New Javascript 1.7 features:
- Generators
- Iterators
- Array comprehensions
- Destructuring assignment
Sounds like another language we know.
...
|
by: Xcriber51 |
last post by:
Hi
I've come here after googling for this a day or two and not being able to
spot what I'm looking for.
I need a JavaScript IDE -- no frills, nothing special -- that offers me
the ability to...
|
by: MartinRinehart |
last post by:
I've written a short article explaining closures in JavaScript. It's
at:
http://www.martinrinehart.com/articles/javascript-closures.html
I think I've understood. I look forward to your...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM).
In this month's session, the creator of the excellent VBE...
|
by: MeoLessi9 |
last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: Aftab Ahmad |
last post by:
Hello Experts!
I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
|
by: Aftab Ahmad |
last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below.
Dim IE As Object
Set IE =...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
| |