...
/Solution Review: Rewriting Code as an Expression
Solution Review: Rewriting Code as an Expression
Learn to rewrite code as an expression.
We'll cover the following...
Solution
The code provided below is the solution to the Rewriting Code as an Expression challenge.
Press + to interact
function checkHealth(health: number) {return health > 80 ? 'You are in good shape' : 'You should work out more!';}console.log(checkHealth(80));
...