const age = 17; let isAdult, canWork, canEnlist, canDrink; if (age >= 16) { canWork = true; if (age >= 18) { isAdult = true; canEnlist = true; if (age >= 21) { canDrink = true; } } } canWork;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter