Tagged Questions
1
vote
0answers
21 views
For loop in javascript [closed]
Whether it is Java, C#, C++ syntax for the for loop looks like that:
for (int i = 1; i <= 5; i++)
{
// something
}
...
4
votes
1answer
40 views
Communicating between plugins whilst maintaining context in Javascript
I'm making some changes to a JavaScript plugin on a site I've been made steward over. This main plugin has it's own sub-plugins and I'm trying to make certain aspects modular.
Currently, I'm ...
5
votes
2answers
97 views
Conway's Game of Life - Conventional Javascript?
I'm using the Game of Life Kata to help me learn Javascript. I've picked up the syntax through Codecademy tutorials, but my current skill level is Novice.
The example code has working functionality ...
8
votes
2answers
118 views
Advice needed for scopes in JavaScript
I would like to connect this "JS" to Bugzilla (example: bugzilla.mozilla.org or landfill.bugzilla.org).
I started to learn JS language today and I would like to ask you:
How can I not do bad ...
2
votes
2answers
153 views
Is this JavaScript/jQuery methodology good?
I am seeking critique on what has become my normal methodology of writing JavaScript code. I have become heavily reliant on the jQuery library, but I think this has helped me learn the native language ...
2
votes
1answer
111 views
Better way to avoid trapping vars in a closure's scope?
I have a quandary with regard to exactly how the JavaScript scope chain works in a particular situation, and despite my searching and reading I am still mainly working on assumptions. I was wondering ...