<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/javascript-if-else-and-if-then-js-conditional-statements-oncx1rdiu" -->

---
title: JavaScript If-Else and If-Then – JS Conditional Statements
description: Jessica Wilkins is the author of JavaScript If-Else and If-Then – JS Conditional Statements. She is also the co-author of the book If- Else And If- Then: The...
canonical: https://daily.dev/posts/javascript-if-else-and-if-then-js-conditional-statements-oncx1rdiu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: JavaScript If-Else and If-Then – JS Conditional Statements | daily.dev
og:description: Jessica Wilkins is the author of JavaScript If-Else and If-Then – JS Conditional Statements. She is also the co-author of the book If- Else And If- Then: The...
og:url: https://daily.dev/posts/javascript-if-else-and-if-then-js-conditional-statements-oncx1rdiu
og:image: https://api.daily.dev/og/posts/oNcX1rDiU.png
og:image:alt: JavaScript If-Else and If-Then – JS Conditional Statements
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# JavaScript If-Else and If-Then – JS Conditional Statements

**[freeCodeCamp](https://daily.dev/sources/freecodecamp)** · [@codergirl1991](https://daily.dev/codergirl1991) · 5 min read · 10 upvotes · 1 comments

## Summary

Jessica Wilkins is the author of JavaScript If-Else and If-Then – JS Conditional Statements. She is also the co-author of the book If- Else And If- Then: The World’s Most Beautiful If-Every-Other-And-If-Then Code, published by Penguin Books.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.freecodecamp.org/news/javascript-if-else-and-if-then-js-conditional-statements/>

## Community discussion

Top comments from developers on daily.dev.

**@shivi\_choudhary** · 0 upvotes

> great content . very helpful

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/javascript-if-else-and-if-then-js-conditional-statements-oncx1rdiu)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"JavaScript If-Else and If-Then – JS Conditional Statements","url":"https://daily.dev/posts/javascript-if-else-and-if-then-js-conditional-statements-oncx1rdiu","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/javascript-if-else-and-if-then-js-conditional-statements-oncx1rdiu"},"datePublished":"2021-08-09T23:23:28.822Z","dateModified":"2021-10-07T14:17:10.317Z","description":"Jessica Wilkins is the author of JavaScript If-Else and If-Then – JS Conditional Statements. She is also the co-author of the book If- Else And If- Then: The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5804c7f129dcaff67caf4bdfe4bbf31b","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5804c7f129dcaff67caf4bdfe4bbf31b","isAccessibleForFree":true,"articleSection":"freeCodeCamp","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Jessica Wilkins","url":"https://daily.dev/codergirl1991","image":"https://lh3.googleusercontent.com/a-/AOh14GiUt7FaOeQIiuR2V_YUMetBBMXqiloZ41JryEbj=s100","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":340}},"commentCount":1,"discussionUrl":"https://daily.dev/posts/javascript-if-else-and-if-then-js-conditional-statements-oncx1rdiu","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":10},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"general-programming,javascript","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"freeCodeCamp","item":"https://daily.dev/sources/freecodecamp"},{"@type":"ListItem","position":3,"name":"JavaScript If-Else and If-Then – JS Conditional Statements"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/javascript-if-else-and-if-then-js-conditional-statements-oncx1rdiu","comment":[{"@type":"Comment","text":"great content . very helpful","datePublished":"2021-08-10T02:55:39.439Z","url":"https://daily.dev/posts/oNcX1rDiU#c-zHvn0TsCC","author":{"@type":"Person","name":"Shivi_codes","url":"https://daily.dev/shivi_choudhary","image":"https://avatars.githubusercontent.com/u/34636947?v=4"}}]}
```

