10 JavaScript Hacks Every Web Developer Should Know


PHOTO EMBED

Tue Jan 05 2021 11:52:50 GMT+0000 (UTC)

Saved by @julien #javascript

// instead of
if (accessible) {
console.log(“It’s open!”);
}
// use
accessible && console.log(“It’s open!”);
content_copyCOPY

https://www.freecodecamp.org/news/javascript-hacks/