9 Shorthands We Need to Know for Writing JavaScript
Jun 3, 2021 · 2 min read · 1 if..else const x = 100 if(x>100) { console.log('over 100!'); } else { console.log('OK'); } console.log((x>100) ? 'over 100!' : 'OK'); // output OK let result = 0; if(result ===0) { result = 10; } else { result = 100; } let result =0; re...
Join discussion

