This wiki is for the exclusive use of my friends and colleagues. Account creation and anonymous editing have been turned off.

If you are a friend or colleague of mine, and would like to participate in this project, please send me a message.

If you find these pages useful, please donate to help cover server costs. Thanks!

Difference between revisions of "Console.log"

From OdleWiki
(Created page with "'''console.log()''' outputs whatever information is contained within the parentheses (whether variable, string, or function) and logs it to the browser console. Categor...")
 
m (Category:Stub is now handled by Template:Stub)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{Template:Stub}}
 +
 
'''console.log()''' outputs whatever information is contained within the parentheses (whether variable, string, or function) and logs it to the [[browser console]].
 
'''console.log()''' outputs whatever information is contained within the parentheses (whether variable, string, or function) and logs it to the [[browser console]].
 +
 +
== Examples ==
 +
 +
=== Logging a String ===
 +
 +
<code>
 +
console.log( "The script has completed." );
 +
</code>
 +
 +
=== Logging the Result of a Function ===
 +
 +
<code>
 +
console.log();
 +
</code>
  
 
[[Category:JavaScript]]
 
[[Category:JavaScript]]
[[Category:Stub]]
 

Latest revision as of 00:24, 1 May 2017

Stub.png
STUB

This article is a stub. You can help the OdleWiki by expanding it.


console.log() outputs whatever information is contained within the parentheses (whether variable, string, or function) and logs it to the browser console.

Examples

Logging a String

console.log( "The script has completed." );

Logging the Result of a Function

console.log();