<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-bet-you-don-t-use-these-javascript-tricks-and-practices-4rfeklnkp" -->

---
title: I Bet You Don’t Use These JavaScript Tricks and Practices
description: I Bet You Don’t Use These JavaScript Tricks and Practices. Using FlatMap Flat Map in javascript is a great technique which you can learn here. Not using native...
canonical: https://daily.dev/posts/i-bet-you-don-t-use-these-javascript-tricks-and-practices-4rfeklnkp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I Bet You Don’t Use These JavaScript Tricks and Practices | daily.dev
og:description: I Bet You Don’t Use These JavaScript Tricks and Practices. Using FlatMap Flat Map in javascript is a great technique which you can learn here. Not using native...
og:url: https://daily.dev/posts/i-bet-you-don-t-use-these-javascript-tricks-and-practices-4rfeklnkp
og:image: https://api.daily.dev/og/posts/4RfekLNKp.png
og:image:alt: I Bet You Don’t Use These JavaScript Tricks and Practices
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.

# I Bet You Don’t Use These JavaScript Tricks and Practices

**[JavaScript in Plain English](https://daily.dev/sources/jsPlainEnglish)** · 5 min read · 395 upvotes · 12 comments

## Summary

I Bet You Don’t Use These JavaScript Tricks and Practices. Using FlatMap Flat Map in javascript is a great technique which you can learn here. Not using native Javascript classes enough Javascript comes pack with native javascript classes that can help you create/instantiate things like URL, Headers and Headers.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://javascript.plainenglish.io/i-bet-you-dont-use-these-javascript-tricks-and-pratices-5ab5438ed4c8?source=rss----4b3a1ed4f11c---4>

## Community discussion

Top comments from developers on daily.dev.

**@yaireo** · 23 upvotes

> I do use them.
> You lost the bet.

**@mrlectus** · 6 upvotes

> I would much prefer if i could read this articles here

**@filipkovac** · 1 upvotes

> underwhelming

**@ahmadhd4** · 0 upvotes

> Good informative article. Thx.

**@valdoryu** · 0 upvotes

> Terrible tricks
> Most of them are used with the wrong use case or with a wrong description

## 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: [#webdev](https://daily.dev/tags/webdev), [#javascript](https://daily.dev/tags/javascript), [#nodejs](https://daily.dev/tags/nodejs)

[View this post on daily.dev](https://daily.dev/posts/i-bet-you-don-t-use-these-javascript-tricks-and-practices-4rfeklnkp)

```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":"I Bet You Don’t Use These JavaScript Tricks and Practices","url":"https://daily.dev/posts/i-bet-you-don-t-use-these-javascript-tricks-and-practices-4rfeklnkp","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-bet-you-don-t-use-these-javascript-tricks-and-practices-4rfeklnkp"},"datePublished":"2023-09-13T00:49:17.630Z","dateModified":"2023-09-13T00:49:15.610Z","description":"I Bet You Don’t Use These JavaScript Tricks and Practices. Using FlatMap Flat Map in javascript is a great technique which you can learn here. Not using native...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1664f323533f3d8b05b94b7d4c30db64?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1664f323533f3d8b05b94b7d4c30db64?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"JavaScript in Plain English","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":"JavaScript in Plain English","logo":"https://media.daily.dev/image/upload/s--Dg5QTRuI--/f_auto,q_auto/v1686665538/logos/pe","url":"https://daily.dev/sources/jsPlainEnglish"},"commentCount":12,"discussionUrl":"https://daily.dev/posts/i-bet-you-don-t-use-these-javascript-tricks-and-practices-4rfeklnkp","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":395},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":12}],"keywords":"webdev,javascript,nodejs","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"JavaScript in Plain English","item":"https://daily.dev/sources/jsPlainEnglish"},{"@type":"ListItem","position":3,"name":"I Bet You Don’t Use These JavaScript Tricks and Practices"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/i-bet-you-don-t-use-these-javascript-tricks-and-practices-4rfeklnkp","comment":[{"@type":"Comment","text":"I do use them.\nYou lost the bet.","datePublished":"2023-09-13T08:53:58.331Z","url":"https://daily.dev/posts/4RfekLNKp#c-NOzUxrIsd","author":{"@type":"Person","name":"Yair Even Or","url":"https://daily.dev/yaireo","image":"https://avatars.githubusercontent.com/u/845031?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":23}},{"@type":"Comment","text":"I would much prefer if i could read this articles here","datePublished":"2023-09-30T18:08:26.111Z","url":"https://daily.dev/posts/4RfekLNKp#c-E7ktSyq3V","author":{"@type":"Person","name":"Brown Carter","url":"https://daily.dev/mrlectus","image":"https://media.daily.dev/image/upload/s--O0TOmw4y--/f_auto/v1715772965/public/noProfile"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6}},{"@type":"Comment","text":"underwhelming","datePublished":"2023-09-13T11:42:57.432Z","url":"https://daily.dev/posts/4RfekLNKp#c-V0tJB40nS","author":{"@type":"Person","name":"Filip Kovac","url":"https://daily.dev/filipkovac","image":"https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=6543559375708705&height=50&width=50&ext=1690472459&hash=AeRAbi7NtFS5xfyzEZs"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Good informative article. Thx.","datePublished":"2023-09-16T08:20:15.529Z","url":"https://daily.dev/posts/4RfekLNKp#c-LDX409V8F","author":{"@type":"Person","name":"Ahmad HQ","url":"https://daily.dev/ahmadhd4","image":"https://media.daily.dev/image/upload/s--QMqpntrF--/f_auto/v1763584332/avatars/avatar_izN8QI8BJo9XytY71qAkW?_a=BAMAK+ZW0"}},{"@type":"Comment","text":"Terrible tricks\nMost of them are used with the wrong use case or with a wrong description","datePublished":"2024-01-25T14:56:10.357Z","url":"https://daily.dev/posts/4RfekLNKp#c-4jHQ8iICN","author":{"@type":"Person","name":"Valdo Ryu","url":"https://daily.dev/valdoryu","image":"https://avatars.githubusercontent.com/u/7875009?v=4"}}]}
```

