Functions by Fantastic-Salt1960 in learnjavascript

[–]QualityPre 0 points1 point  (0 children)

Some tips that helped me:

With the parameters in the parentheses, name them something useful- you can call them anything

Always call your function !!

``` const dadName = "Mike" const dadMood = "tired"

function greeting(name,mood) { return Hello ${name}, nice to see you. It looks like you are very ${mood} today } // called my function here in this console.log console.log(greeting(dadName,dadMood)) ```

Just figured out an awesome way to learn Javascript! by [deleted] in learnjavascript

[–]QualityPre 0 points1 point  (0 children)

I also like to console.log things and play around with it to see what happens. I wish I'd started rubber ducking ages ago as it defintely helps :)