<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-write-maintainable-javascript-code-in-2023-web-or-node-js-wrow5x1cd" -->

---
title: How to write maintainable JavaScript code in 2023 — Web...
description: Using TypeScript everywhere is best suited for JS developers with at least medium experience. Don’t be scared of TypeScript. Use prototypes and/or MVPs before...
canonical: https://daily.dev/posts/how-to-write-maintainable-javascript-code-in-2023-web-or-node-js-wrow5x1cd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to write maintainable JavaScript code in 2023 — Web or Node.js | daily.dev
og:description: Using TypeScript everywhere is best suited for JS developers with at least medium experience. Don’t be scared of TypeScript. Use prototypes and/or MVPs before...
og:url: https://daily.dev/posts/how-to-write-maintainable-javascript-code-in-2023-web-or-node-js-wrow5x1cd
og:image: https://api.daily.dev/og/posts/WROw5X1cD.png
og:image:alt: How to write maintainable JavaScript code in 2023 — Web or Node.js
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.

# How to write maintainable JavaScript code in 2023 — Web or Node.js

**[Dev Genius](https://daily.dev/sources/devgenius)** · 8 min read · 229 upvotes · 13 comments

## Summary

Using TypeScript everywhere is best suited for JS developers with at least medium experience. Don’t be scared of TypeScript. Use prototypes and/or MVPs before implementing complex features. Use ESLint and Prettier together and you can focus on what your code does. If you use prettier, it will join multi-line breaks.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.devgenius.io/how-to-write-maintainable-javascript-code-in-2023-web-or-node-js-d66d8baead67?source=rss----4e2c1156667e---4>

## Community discussion

Top comments from developers on daily.dev.

**@zoreankit** · 5 upvotes

> Happy new year!

**@ucanozen** · 4 upvotes

> How to write maintainable JavaScript code > write TypeScript! I don't understand how these click bait articles get so much vote.
> Also, the JavaScript example is more understandable than the TypeScript example with all nested types.

**@meskili** · 4 upvotes

> I just need to wait 4 months now

**@dunsincodes** · 0 upvotes

> Nothing better than preparing for the future

**@lhernandez086** · 0 upvotes

> Reading...

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#testing](https://daily.dev/tags/testing), [#backend](https://daily.dev/tags/backend), [#typescript](https://daily.dev/tags/typescript), [#tdd](https://daily.dev/tags/tdd)

[View this post on daily.dev](https://daily.dev/posts/how-to-write-maintainable-javascript-code-in-2023-web-or-node-js-wrow5x1cd)

```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":"How to write maintainable JavaScript code in 2023 — Web or Node.js","url":"https://daily.dev/posts/how-to-write-maintainable-javascript-code-in-2023-web-or-node-js-wrow5x1cd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-write-maintainable-javascript-code-in-2023-web-or-node-js-wrow5x1cd"},"datePublished":"2022-09-28T01:27:22.715Z","dateModified":"2022-09-28T01:27:22.714Z","description":"Using TypeScript everywhere is best suited for JS developers with at least medium experience. Don’t be scared of TypeScript. Use prototypes and/or MVPs before...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f74cb72c2a20511543a962ca77fae434","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f74cb72c2a20511543a962ca77fae434","isAccessibleForFree":true,"articleSection":"Dev Genius","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":"Dev Genius","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a79144d7517043e7803ed562e45a99df","url":"https://daily.dev/sources/devgenius"},"commentCount":13,"discussionUrl":"https://daily.dev/posts/how-to-write-maintainable-javascript-code-in-2023-web-or-node-js-wrow5x1cd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":229},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":13}],"keywords":"javascript,testing,backend,typescript,tdd","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Dev Genius","item":"https://daily.dev/sources/devgenius"},{"@type":"ListItem","position":3,"name":"How to write maintainable JavaScript code in 2023 — Web or Node.js"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/how-to-write-maintainable-javascript-code-in-2023-web-or-node-js-wrow5x1cd","comment":[{"@type":"Comment","text":"Happy new year!","datePublished":"2022-09-28T07:45:02.216Z","url":"https://daily.dev/posts/WROw5X1cD#c-Fps66uz6G","author":{"@type":"Person","name":"Ankit Zore","url":"https://daily.dev/zoreankit","image":"https://media.daily.dev/image/upload/f_auto/v1659090159/avatars/eBUxEzfENz9ZewzloNwiC"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5}},{"@type":"Comment","text":"How to write maintainable JavaScript code &gt; write TypeScript! I don’t understand how these click bait articles get so much vote.\nAlso, the JavaScript example is more understandable than the TypeScript example with all nested types.","datePublished":"2022-10-04T04:02:31.703Z","url":"https://daily.dev/posts/WROw5X1cD#c-rT1A17O3E","author":{"@type":"Person","name":"Umut Ozen","url":"https://daily.dev/ucanozen","image":"https://lh3.googleusercontent.com/a-/AOh14Gjkhiw8bE5WCkepA1C13BDlDCIyzyKJM9TToGRMhlA=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}},{"@type":"Comment","text":"I just need to wait 4 months now","datePublished":"2022-09-28T22:26:16.208Z","url":"https://daily.dev/posts/WROw5X1cD#c-MKm-mCNRg","author":{"@type":"Person","name":"metin eskili","url":"https://daily.dev/meskili","image":"https://lh3.googleusercontent.com/a-/AFdZucrydz7yA7dGBDy7aKGjnFmRmiDtO0JkpfexKCh1mg=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}},{"@type":"Comment","text":"Nothing better than preparing for the future","datePublished":"2022-09-29T17:44:48.908Z","url":"https://daily.dev/posts/WROw5X1cD#c-vEfVqk8s5","author":{"@type":"Person","name":"Dunsin","url":"https://daily.dev/dunsincodes","image":"https://avatars.githubusercontent.com/u/78784850?v=4"}},{"@type":"Comment","text":"Reading…","datePublished":"2022-12-14T14:29:32.022Z","url":"https://daily.dev/posts/WROw5X1cD#c-ZJC6_orjB","author":{"@type":"Person","name":"Lester Hernandez","url":"https://daily.dev/lhernandez086","image":"https://lh3.googleusercontent.com/a-/AOh14GiB-eMB6JZqcBp45PIGnITTes9HZzdbBRc3eRQi188=s100"}}]}
```

