JavaScript syntax: Difference between revisions

Content deleted Content added
Added short description.
Tags: Mobile edit Mobile web edit Advanced mobile edit
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 10:
The examples below make use of the log function of the console object present in most browsers for [[Standard streams#Standard output .28stdout.29|standard text output]].
 
The JavaScript [[standard library]] lacks an official standard text output function (with the exception of <code>document.write</code>). Given that JavaScript is mainly used for [[client-side scripting]] within modern [[Webweb browser]]s, and that almost all Web browsers provide the alert function, <tt>alert</tt> can also be used, but is not commonly used.
 
==Origins==