<h2>How cool is Chris?</h2>
<div id="stuff"></div>
body {
padding: 50px;
}
View Compiled
const name = 'chris';
let howCoolAmI;
// TERNARY!
howCoolAmI = (name === 'chris') ? 100 : 999;
// show it to our user
document.getElementById('stuff').innerText =
`Level ${howCoolAmI}`
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.