---
title: "Comment by Elena Kazakova on \"Short-circuiting in Javascript\" | Hashnode"
description: "It was helpful, thanks! It would be great to know what are the pros and cons, the differences between this approach and the &#39;if&#39; or ternary operator."
url: "https://hashnode.com/posts/short-circuiting-in-javascript/61d1b6560cfc5655c184665b/comment/61d5a3d79d96c307e0a28ce8"
---

[Discussion](https://hashnode.com/posts/short-circuiting-in-javascript/61d1b6560cfc5655c184665b)

Comment [Short-circuiting in Javascript](https://hashnode.com/posts/short-circuiting-in-javascript/61d1b6560cfc5655c184665b)

[Elena Kazakova](https://hashnode.com/@N0vum)

[Jan 5, 2022](https://hashnode.com/posts/short-circuiting-in-javascript/61d1b6560cfc5655c184665b/comment/61d5a3d79d96c307e0a28ce8)

It was helpful, thanks! It would be great to know what are the pros and cons, the differences between this approach and the 'if' or ternary operator.
