ConsoleLog

Purpose:

Display a message in the browser's debugging console.

Category:

Debug

Syntax:

ConsoleLog "message"

message

The string or the (compound) variable to display.

Example:

SetVar [greeting] "Hey"

ConsoleLog "A popular English greeting is: [greeting]"


SetVar [greetingArray] "Hello,Hi,Hey,Hallo,Hoi"

ConsoleLog "The most popular Dutch greeting is: [greetingArray(3)]"


-> expected value: Hallo


Tip: to view the browser console, press the F12 key.





ConsoleTable

Purpose:

Display array or object variable data in the browser's debugging console as a table

Category:

Debug

Syntax:

ConsoleTable "[myObject]"

myObject

The array or object variable to display.

Example:

CreateEmptyObject [myObject]

SetVar [myObject.name] "Peter"

SetVar [myObject.age] 32

SetVar [myObject.country] "United Kingdom"

ConsoleTable "[myObject]"


Tip: to view the browser console, press the F12 key.