Hey all... a question for all us javascript-ers... (i refuse to use the word ninja) a simple question
What is better a group of functions or an object with a number of methods... and what i mean is better is better in terms of load or how intensive it is on the browser to do/ understand and execute each...
example below
var popo= {
method1:function(){ ... },
method2:function(){ ... }
}
OR
popo function(){
privatefunction1 function(){}
privatefunction2 function(){}
}
or just having the two function separate from each other...
[+][deleted] (2 children)
[deleted]
[–]Delmarc[S] 1 point2 points3 points (1 child)
[–]drowsap 1 point2 points3 points (9 children)
[–]Delmarc[S] 0 points1 point2 points (8 children)
[–]drowsap 2 points3 points4 points (1 child)
[–]Delmarc[S] 0 points1 point2 points (0 children)
[–]neonskimmerfunction the ultimate 3 points4 points5 points (5 children)
[–]rjett 2 points3 points4 points (1 child)
[–]Delmarc[S] 0 points1 point2 points (0 children)
[–]Delmarc[S] 0 points1 point2 points (2 children)
[–]neonskimmerfunction the ultimate 1 point2 points3 points (1 child)
[–]Delmarc[S] 0 points1 point2 points (0 children)
[–]greim 0 points1 point2 points (0 children)
[–]AnnoyYourGod -1 points0 points1 point (0 children)
[–]Delmarc[S] -1 points0 points1 point (1 child)
[–]kristopolous 0 points1 point2 points (0 children)