var msg = "From inline function"; var result = (function(m) { alert(m); return "Result of inline function"; }(msg)); alert(result);
Latest posts by saki (see all)
- Ext, Angular, React, and Vue - June 27, 2019
- The Site Resurgence - February 11, 2018
- Configuring ViewModel Hierarchy - June 19, 2015
At first glance, the only advantage I see here is you can easily create a private function without polluting the global namespace. The main disadvantage is you can’t re-use the function.
Hi,
In your examples you have the line:
link rel=”shortcut icon” ref=”./img/extjs.ico”
Where i can find this file extjs.ico ?
Please, can you send to me ?
Beast regard´s,
Jose Sousa
Hi,
In your examples you have the line:
Where i can find this file extjs.ico ?
Please, can you send to me ?
Beast regard´s,
Jose Sousa
Sometimes you need to calculate result, e.g. while configuring a component, one of the options has to be “calculated”.
Performance is not a point here.
What are the advantages? Does in-lining will improve performance?