Question: How can I rewrite the following code into something with fewer lines, but the same behavior? let a = 14; if (a > 20) {
How can I rewrite the following code into something with fewer lines, but the same behavior? let a = 14; if (a > 20) { console.log(true); } else { console.log(false); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
