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…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.