The basics plus two worth knowing: % is remainder (great for "every Nth" and wrap-around), and ** is exponent (2 ** 10). Watch + with strings — it concatenates, so "5" + 1 is "51", not 6.
The basics plus two worth knowing: % is remainder (great for "every Nth" and wrap-around), and ** is exponent (2 ** 10). Watch + with strings — it concatenates, so "5" + 1 is "51", not 6.
<!doctype html><html><head><meta charset="utf-8"></head>
<body style="background:#06040d;color:#e6e0ff;font-family:monospace;padding:20px"><pre id="o"></pre>
<script>const o=['6 % 2 = '+(6%2)+' (even)', '2 ** 8 = '+(2**8), '"5"+1 = '+('5'+1)];
document.getElementById('o').textContent=o.join('\n');</script></body></html>▶ Open the interactive comic issue