Questions tagged [javascript-1.7]

JavaScript 1.7 is a language update introducing several new features, in particular generators, iterators, array comprehensions, let expressions, and destructuring assignment. It also includes all the features of JavaScript 1.6.

6 questions
150
votes
4 answers

What does curly brackets in the `var { ... } = ...` statements do?

Not sure if this is a Mozilla-specific JS syntax, but I often found variables being declared this way, for example, in add-on SDK docs: var { Hotkey } = require("sdk/hotkeys"); and in various chrome Javascript (let statement is being used in place…
timdream
  • 5,914
  • 5
  • 21
  • 24
4
votes
1 answer

Javascript. Swap two variables. How it works?

Saw in a single source next: [param_o,param_got] = [param_got,param_o]; This code swap variables param_o & param_got.But how [param_o,param_got] = [param_got,param_o] works, if [] is new instance of Array in Javascript ? EDIT Try checking: var…
voodoo417
  • 11,861
  • 3
  • 36
  • 40
1
vote
3 answers

The Network Adapter could not establish the connection Vendor code 17002 on SQL developer all versions

I get the above error when connecting to a new schema. Note that when my VPN is connected initially all the connections(C1,C2,C3...) work fine. I then start working on one connection(C1) and after say 2 hours if i try to connect to C2 I have this…
Shil N
  • 35
  • 1
  • 1
  • 7
1
vote
3 answers

How to use let (or other JS 1.7 features) in the web console?

I was wanting to test some things with let statement in the console, but I ran into a problem - it isn't supported in Firefox or Chromium. I know it's supported, if you set the javascript version in a script tag, but is there any option that will…
0
votes
1 answer

Elements inside custom HTML tag aren't initialised in constructor

I need to access elements inside a custom tag I created . The problem is that the constructor isn't called after initializing these elements (which is expected). In this example I can't access the form tag manifested in the object…
mahmoud fathy
  • 361
  • 1
  • 7
  • 17
0
votes
2 answers

'Char' type not converting to 'String' type as expected

private boolean CharToString(){ String lineOfText = "XXXXXX"; String desiredResult = "X"; String actualResult = "initialised value"; for(int i = 0; i < lineOfText.length(); i ++){ actualResult =…
ZOMGbies
  • 51
  • 1
  • 1
  • 7