James John wrote
Operator (&& ||) short-circuiting in JavaScript
One handy feature of JavaScript and some other programming languages like Java is the concept of operator short-circuiting.So, what does the operator short-circuiting in JavaScript mean? To understand what operator short-circuiting mean, let’s see it in action: let online = true; let active = true; if(online) { if (active) { console.log(‘James’) } } Short-circuiting the […]
November 20, 2019 in Javascript & Tutorials