Stellar-Junior-Dev / cocktailMasters-cosmin

0 stars 0 forks source link

[Code feedback] Create a renderIcon function #4

Closed emilianraduu closed 1 year ago

emilianraduu commented 1 year ago

https://github.com/Stellar-Junior-Dev/cocktailMasters-cosmin/blob/ea54941415d5eaccef593cf4838dec64aa70a9dd/detailsPage/script.js#L173

Since in the function above 2 icons are rendered, a function called renderIcon should be created. This function receives 2 parameters: "iconName" which is the name of the icon that should be rendered and "className" which is the class that the icon should have.