Difference between revisions of "Console.log"
From OdleWiki
m (Adding examples) |
m (Added stub template.) |
||
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]]. | ||
Revision as of 00:23, 1 May 2017
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();