Linked Questions

1 vote
2 answers
75 views

I'm trying to understand this javascript-code: onMouseMoved = (function(_this) { return function(event) { dx = (event.pageX/3) / window.innerWidth; dy = (event.pageY/3) / window....
Himmators's user avatar
  • 15.1k
1 vote
3 answers
70 views

I am looking at this tutorial. I know that it is using an anonymous function, from this answer: Why do you need to invoke an anonymous function on the same line? I understand that the () at the end ...
bernie2436's user avatar
  • 24.2k
-1 votes
4 answers
61 views

for(i=0; i< 3; i++){ (function(i){ console.log(i) })(i); } I've encountered this and was wondering how it works (I understood the result, just want some deeper explanation on the (...
user2393426's user avatar
-4 votes
2 answers
94 views

In order to use the $ symbol in jquery and not have to use jQuery.functionname, we use this (function($) { })(jQuery); (In drupal, you actually have to specify this implicitly). I don't ...
user1015214's user avatar
  • 3,121
0 votes
2 answers
71 views

can anybody tell me whats the difference between this two examples: //difference with this: var x = function withName(a,b,c) {} //why i should declare a name here? //and this var y = function (a,b,c)...
Jonas Sciangula Street's user avatar
-1 votes
1 answer
78 views

need help, i try to read a cell in this fonction. I've tried 20 differents type of thing, i always have this error message when i run the focntion on my spreadsheet : Message details : Cannot ...
C.Jay's user avatar
  • 15
-1 votes
2 answers
71 views

I am working with a bit of code which has the following Javascript function. I have read this SO article which has explained things a little bit but I am still a bit confused as to how this code ...
Jon Hunter's user avatar
1 vote
0 answers
47 views

I am trying something and I saw Facebook SDK's code: (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = ...
Daniel Cheung's user avatar
0 votes
0 answers
37 views

var Product = (function () { function Product() { } return Product; }()); For example note the above function, It is creating a IIFE function inside that another function is created ...
Mutharasan's user avatar

15 30 50 per page
1 2 3 4
5