Console
Steps
- Create a project
sample-builtin-console
. - Then create a JavaScript service named
console-log.js
. - Within the service code, enter the following content:
// Info
console.info("Info message.");
// Error
console.error("Error message.");
// Warning
console.warn("Warning message.");
// Arguments
var firstName = "John";
var lastName = "Smith";
console.log(`First name: ${firstName}, last name: ${lastName}`);
For more information, see the API documentation.