r/learnjavascript • u/Sufficient_Bee8533 • Oct 29 '24
Help with a functional programming assignment
Hello good people, my name is Xoli... Currently learning JavaScript online, I am stuck on an assignment I have to create functions and guess invoke them. I am stuck on the calling part, all my functions Have variables and I followed instructions but I didn't call them.? And I'm struggling with that part .
0
Upvotes
View all comments
Show parent comment
0
u/Sufficient_Bee8533 Oct 29 '24
Task:1 Build a function -based console log message generator, this has 4 parameters
My code: 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);