我是 JavaScript 新手,当我运行代码时,它显示“未记录变量”,如何记录变量。请帮忙
function consoleStyler(color, background,fontSize,txt) {
var message = "%c" + txt;
var style = `color:${color};`
style += `background: ${background};`
style += `font-size: ${fontSize};`
console.log(message, style)
}