SOURCE

const userLogs = userName => message => console.log(`${userName} -> ${message}`);

const log = userLogs('grandpa23');

console.log('log:', log)
console 命令行工具 X clear

                    
>
console