---
title: "Discussion on \"JavaScript Programming: Which Control Structure is Better for Performance - if-else or switch Statements?\" | Hashnode"
description: "Discussion on \"JavaScript Programming: Which Control Structure is Better for Performance - if-else or switch Statements?\". The two most common types of conditional statements are if/else and switch/case.\n\nif/else statements allow developers to test a single condition at a time a"
url: "https://hashnode.com/posts/javascript-programming-which-control-structure-is-better-for-performance-if-else-or-switch-statements/645a7ea5fa993e7a46e80f62"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript Programming: Which Control Structure is Better for Performance - if-else or switch Statements?](https://drtech.hashnode.dev/javascript-programming-which-control-structure-is-better-for-performance-if-else-or-switch-statements?utm_source=hashnode&utm_medium=feed)

The two most common types of conditional statements are if/else and switch/case. if/else statements allow developers to test a single condition at a time a

May 9, 2023 · 2 min read · drtech.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#switch-case](https://hashnode.com/tag/switch-case)
-   [#if-else](https://hashnode.com/tag/if-else)
-   [#conditional-statement](https://hashnode.com/tag/conditional-statement)
-   [#switch](https://hashnode.com/tag/switch)

## Written by

[Ecyla Nyambu](https://hashnode.com/@Ecyla)

@Ecyla · Nairobi,Kenya

  
[View profile](https://hashnode.com/@Ecyla)

Am a software Developer

I love computers

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
