Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Splitting on several lines
Message
From
03/06/2013 04:17:49
 
 
To
03/06/2013 04:01:03
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01575403
Message ID:
01575470
Views:
26
>>Given the context of the OP I'd say Michel intended to say 'Statements'
>>If he'd *really* wanted more lines (in your definition) he could just have banged in a few CR/LFs ?
>>
>>IAC, yours was the most elegant and readable solution....
>
>I learned a lot from reading JS framework source code, especially Prototype.js back in 2005.
>Was a harsh experience with a VFP background, though achievable.
>
>You can find similar constructs nearly everywhere in JavaScript framework source code; typically for parameters default value:
>
>parm = parm || default;
>
>
>FWIW, a couple of things I took a long time to understand with JavaScript:
>- automatic coercion
>- closures
>- functions are objects
>- global variables are properties of the Global object
>- object litterals ({pop1: value1, prop2: value2, method1: function(){}})
>- prototype
>
>Much more to say about linking JavaScript and HTML DOM ... (presentation to OFUG scheduled in July)

My JavaScript skills are, at best, minimal. i.e. I can write code that works but will probably look back on it in horror in months to come :-}
I conceptually understand the points above but not to the extent that I can comfortably use them to improve design :-{
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform