JavaScript syntax: Difference between revisions

Content deleted Content added
Produced the evidence that Quamaretto asked for; syntactic influence of AWK is really stronger than the influence of Perl; correct me if I am wrong
Most syntax elements were taken over from C, inserted examples providing evidence
Line 3:
 
A popular fallacy grants Java the most influence on the syntax of JavaScript. Direct [http://www.lurklurk.org/rosetta.html comparison] between JavaScript and the langauges mentioned above reveals in a different view:
#[[C programming language|C]] contributed control flow syntax with keywords like ''if'', ''else'', ''while'', ''continue'', ''switch'', ''case'', and ''default''. The semantics of these control flow elements is identical. C also contributed arithmetic and logic operators like ''&&'', ''||'', and ''!''.
#[[AWK_programming_language|AWK]] contributed
##Exact syntax of access to associative arrays, including the loop over hashes (associatve arrays) with the ''for (key in object)'' iteration.