<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/style-guide-for-new-javascript-developers-h3s8u05tf" -->

---
title: Style Guide for new JavaScript Developers | daily.dev
description: If you are a junior developer, your code may not be very efficient and clean. In this post, I will explain the 10 best practices you can do to make your code...
canonical: https://daily.dev/posts/style-guide-for-new-javascript-developers-h3s8u05tf
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Style Guide for new JavaScript Developers | daily.dev
og:description: If you are a junior developer, your code may not be very efficient and clean. In this post, I will explain the 10 best practices you can do to make your code...
og:url: https://daily.dev/posts/style-guide-for-new-javascript-developers-h3s8u05tf
og:image: https://api.daily.dev/og/posts/h3S8u05Tf.png
og:image:alt: Style Guide for new JavaScript Developers
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.

# Style Guide for new JavaScript Developers

**[Medium](https://daily.dev/sources/medium_js)** · 3 min read · 36 upvotes · 3 comments

## Summary

If you are a junior developer, your code may not be very efficient and clean. In this post, I will explain the 10 best practices you can do to make your code cleaner. If you use IF as a condition, make sure there is enough spacing between them. Write lots of comments in your code.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://hosainabid.medium.com/style-guide-for-new-javascript-developers-e3d6cd6a727f>

## Community discussion

Top comments from developers on daily.dev.

**@abalejr** · 2 upvotes

> The points in this article are good, but the code samples don't use any indentation. Please use consistent indentation in blocks!

**@rap0so** · 2 upvotes

> This article seems like a mix of opinions, but don't worry fellow developer, nowadays we just follow one of these (battle tested) guidelines:
>
>
> https://google.github.io/styleguide/jsguide.html
> https://github.com/airbnb/javascript
> https://standardjs.com/
>
>
> You can choose if the project wasn't configured yet, and let your idle organize the code for you <3

---

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/style-guide-for-new-javascript-developers-h3s8u05tf)

```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":"Style Guide for new JavaScript Developers","url":"https://daily.dev/posts/style-guide-for-new-javascript-developers-h3s8u05tf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/style-guide-for-new-javascript-developers-h3s8u05tf"},"datePublished":"2021-05-26T09:13:28.413Z","dateModified":"2021-10-07T14:17:10.317Z","description":"If you are a junior developer, your code may not be very efficient and clean. In this post, I will explain the 10 best practices you can do to make your code...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/82da520cc8a1b94125d9aff119edf6d9","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/82da520cc8a1b94125d9aff119edf6d9","isAccessibleForFree":true,"articleSection":"Medium","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":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":3,"discussionUrl":"https://daily.dev/posts/style-guide-for-new-javascript-developers-h3s8u05tf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":36},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":3}],"keywords":"general-programming,javascript","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"Style Guide for new JavaScript Developers"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/style-guide-for-new-javascript-developers-h3s8u05tf","comment":[{"@type":"Comment","text":"The points in this article are good, but the code samples don’t use any indentation. Please use consistent indentation in blocks!","datePublished":"2021-05-26T18:03:16.492Z","url":"https://daily.dev/posts/h3S8u05Tf#c-cN_D5bkb0","author":{"@type":"Person","name":"A.J. Bale","url":"https://daily.dev/abalejr","image":"https://avatars.githubusercontent.com/u/18539034?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"This article seems like a mix of opinions, but don’t worry fellow developer, nowadays we just follow one of these (battle tested) guidelines:\nhttps://google.github.io/styleguide/jsguide.html\nhttps://github.com/airbnb/javascript\nhttps://standardjs.com/\nYou can choose if the project wasn’t configured yet, and let your idle organize the code for you \u0026lt;3","datePublished":"2021-05-26T20:01:24.571Z","url":"https://daily.dev/posts/h3S8u05Tf#c-JSyiC-ofK","author":{"@type":"Person","name":"William Godoy","url":"https://daily.dev/rap0so","image":"https://lh3.googleusercontent.com/a-/AOh14GjUZ0PdVe1RmA-Ldm_gexFoGjzZxsxhqilwoEq2qA=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}}]}
```

