Formats a message, prints it to the console with a prefix, and returns it.
The text content to be formatted and logged.
The final formatted log string.
import { print } from "@yai/example";const message = print("hello world");// Logs: "logString hello world"// message: "logString hello world" Copy
import { print } from "@yai/example";const message = print("hello world");// Logs: "logString hello world"// message: "logString hello world"
Formats a message, prints it to the console with a prefix, and returns it.