Skip to main content

log()

Last updated 8/05/2021

Example One

The following code writes a message to the Five Inspector.

JavaScript
Log a message
five.log('Hello World!');

Example Two

The following code writes an object's key: value pairs to the Five Inspector.

JavaScript
Log an object's key: value pairs
const obj = {firstname:"Jo", lastname:"Smith"};
five.log(obj);

Example Three

The following code writes an array's elements to the Five Inspector.

JavaScript
Log an array's elements
const arr = ["Brisbane", "Sydney", "Melbourne", "Adelaide"];
five.log(arr);