Learning JavaScript, Day 20 – Expressions, Arrows, And A Quiz 0 ▲ Katemonkey (In Most Places) 191 days ago · 7 min read1372 words · Tech · hide · Fediverse post Oh ho ho today is definitely a day for my temperature function. function temp(c) { return (c * 1.8) + 32; } let temperature = temp(22); document.getElementById("demo").innerHTML = "The temperature is " + temperature + "°F"; The temperature is 71.6°F Today is also a day where I need to start doing my course reading, so there might be a second blog post today all about "Research on information systems failures and successes: Status update and future directions" and "User Acceptance of Information Technology: Toward a Unified View". I know you're excited. SO EXCITED. But, first, we finish off Functions. Function ExpressionsSo you can store functions in variables. Which means my temperature function could be const temp = function (c) { return (c * 1.8) + 32;}; let f = temp(22); document.getElementById("demo").innerHTML = "The temperature is " + f + "°F"; Which is pretty much the same as above, just with a variable added in. And you don't have to name the function inside the… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town