const studio = 'MP Web Studio';
let projects = 2;
projects += 1;
const active = projects > 0;
console.log(`${studio} | ${projects} | ${active}`);Each step produces a value used by the next, and the output reflects the final state.
LESSON 10 OF 50
Combine a constant, an updated variable, a comparison and a template literal.
A small program can transform data in steps: declare stable values, update changing state, derive a boolean and compose the final result.
const studio = 'MP Web Studio';
let projects = 2;
projects += 1;
const active = projects > 0;
console.log(`${studio} | ${projects} | ${active}`);Each step produces a value used by the next, and the output reflects the final state.
console.log('MP Web Studio | 3 | true');The text may look identical but does not demonstrate declaring, updating and deriving the values.
Complete the steps so the final summary is “MP Web Studio | 3 | true”.
Run the code to see the result.The result passes only when both the real output and the structural steps are present.
ANALYSIS REQUEST
The initial discussion is without obligation. You receive an honest recommendation, suitable stages and the factors that affect price.