LOG

The LOG function will print a log trace in the browser console for debugging purposes.

Syntax

LOG(object1, [object2])

Argument name

Description

object1

Required

A text or variable to print

object2

Optional

An optional text or variable to print

Examples

  • LOG('Hello world') prints the text Hello world

  • LOG('Total:', total) prints the text Total: and the value of the variable total.

Last updated