console.writeln([str1, str2, str3...])
Writes to the console using console.stdout, adding a last newline character. Contrary to console.stdout:writeln(), console.writeln() can write more than one string, each string is separated with a space character.
Parameters
str1, str2,...
Optional strings to write to the console. If the argument is not a string, the function converts it internally using the tostring
function.
Calling the function without any argument writes "\n"
Return value
The function returns no value.Example
local console = require "console"
-- equivalent to print("Hello World")
console.writeln("Hello World !")