The JavaScript substitution for IF with AND (&&) operator
The && operator unique to JavaScript.With it you can quickly go from this
function visitSite(user) {
if (user.isLoggodIn) {
console.log(`You are $ {user.name}`)
}
console.log (“Welcome”);
}
To this:
function visitSite(user) {
...
ligalahhezron.hashnode.dev1 min read