r/JavaScriptTips • • Jul 08 '23

HELP WITH CODING ROOMS

I’m doing the coding rooms free course and I’m stuck on this assignment. Instructions in the picture. Any help is appreciated

3 Upvotes

4 comments sorted by

View all comments

1

u/[deleted] Jul 08 '23

Use default parameters in function rather than using if else

0

u/Key_Safety8433 Jul 08 '23

Idk what default parameters are💀