Need help with a functional program assignment

function consoleStyler(color, background, fontsize, txt) {
let style = `color: ${color};`;
style += `background-color: ${background};`;
style += `font-size: ${fontsize}`;
return console.log("%c" + txt, style);
consoleStyler('red', 'black', '2rem', 'io982');

In the future, please create your own topic when you have specific questions about your own challenge code. Only respond to another thread when you want to provide help to the original poster of the other thread or have follow up questions concerning other replies given to the original poster.

The easiest way to create a topic for help with your own solution is to click the Ask for Help button located on each challenge. This will automatically import your code in a readable format and pull in the challenge url while still allowing you to ask any question about the challenge or your code.

Thank you.

1 Like

A post was merged into an existing topic: Programming Assignment: Building a functional program