JavaScript syntax: Difference between revisions

Content deleted Content added
m Comparison: Shortened sentence, added consideration of identical.
Fixed typo
Tags: canned edit summary Mobile edit Mobile app edit
Line 2:
The '''[[Syntax (programming languages)|syntax]] of [[JavaScript]]''' is the set of rules that define a correctly structured JavaScript program.
 
The examples below make use of the log function of the [[console]] object present isin most browsers for [[Standard streams#Standard output .28stdout.29|standard text output]].
 
The JavaScript [[standard library]] lacks an official standard text output function. Given that JavaScript is mainly used for [[client-side scripting]] within modern [[Web browser]]s, and that almost all Web browsers provide the alert function, <tt>alert</tt> can also be used, but is not commonly used.