---
title: "Zach Snoek (@zachsnoek) | Hashnode"
description: "Software Engineer. Read the latest articles by Zach Snoek on Hashnode."
url: "https://hashnode.com/@zachsnoek"
---

@zachsnoek

# Zach Snoek

@zachsnoek · Washington, USA · Joined August 2021

Software Engineer

[Website](https://zachsnoek.com/)

## Comments

[Dirk Ecker Oh, I meant to say "invalid" instead of "valid." Yes, in your example you'd want to use ??. I've updated the post and edited that section to be more clear; thanks for catching that!](https://hashnode.com/posts/when-to-use-logical-or-vs-nullish-coalescing-in-javascript/6251f2b675dccb6f3431e938/comment/6252921192d73e7055c194bf#reply-62533e0192d73e7055c1a33b)

Reply · Article · Apr 10, 2022 · [When to use logical OR vs. nullish coalescing in JavaScript](https://hashnode.com/posts/when-to-use-logical-or-vs-nullish-coalescing-in-javascript/6251f2b675dccb6f3431e938)

[... when you want falsy left operands besides null and undefined to be considered valid. You should use || in this case.](https://hashnode.com/posts/when-to-use-logical-or-vs-nullish-coalescing-in-javascript/6251f2b675dccb6f3431e938/comment/6252921192d73e7055c194bf#reply-6252f0d892d73e7055c19c9e)

Reply · Article · Apr 10, 2022 · [When to use logical OR vs. nullish coalescing in JavaScript](https://hashnode.com/posts/when-to-use-logical-or-vs-nullish-coalescing-in-javascript/6251f2b675dccb6f3431e938)
