The next common would be ternary expressions. These expressions return a value of true/false and execute logic based on the condition.
name = isName === 'Brian' ? true : false
if isName is ‘Brian’ then name would be true, otherwise it’s set to false.
Another way to check and assign a result is with double bangs.
userLoggedIn = '' isUserLoggedIn = !!userLoggedIn
Above, the double bang will return false.