<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/17-interesting-javascript-tricks-myltfflrz" -->

---
title: 17 Interesting JavaScript Tricks | daily.dev
description: This is my latest post that will increase your efficiency and productivity when coding JavaScript. There are many ways to write code but generally the first...
canonical: https://daily.dev/posts/17-interesting-javascript-tricks-myltfflrz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 17 Interesting JavaScript Tricks | daily.dev
og:description: This is my latest post that will increase your efficiency and productivity when coding JavaScript. There are many ways to write code but generally the first...
og:url: https://daily.dev/posts/17-interesting-javascript-tricks-myltfflrz
og:image: https://api.daily.dev/og/posts/mYlTffLRZ.png
og:image:alt: 17 Interesting JavaScript Tricks
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.

# 17 Interesting JavaScript Tricks

**[Hacker Noon](https://daily.dev/sources/hackernoon)** · 24 upvotes · 5 comments

## Summary

This is my latest post that will increase your efficiency and productivity when coding JavaScript. There are many ways to write code but generally the first way for many people is very long and can take you some time. The ternary operator can be used to check if numbers are not equal. Short circuit conditionals can also be used in JavaScript.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://hackernoon.com/17-interesting-javascript-tricks-4i283133>

## Community discussion

Top comments from developers on daily.dev.

**@aedan** · 6 upvotes

> I'm not a fan of the word "Noob" when referencing a beginner. Yes the word noob does mean "newbie" => "beginner". However over the years the term "noob" has almost always exclusively been used as an insult to point out that someone is bad at a certain task. The developer community is already filled with people suffering from imposter syndrome, no need to make these people feel even worse. Therefore I always prefer the word "beginner" rather than the insulting word "noob".

**@dusansen** · 2 upvotes

> There is a couple of bugs in code snippets provided in article.

**@valentinb** · 1 upvotes

> There are some good tips but this article contains some errors on examples... Be careful

**@alfreddagenais** · 0 upvotes

> Thanks for this article. I realize I doing some beginner tips over the years haha

## 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

---

Tags: [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/17-interesting-javascript-tricks-myltfflrz)

```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":"17 Interesting JavaScript Tricks","url":"https://daily.dev/posts/17-interesting-javascript-tricks-myltfflrz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/17-interesting-javascript-tricks-myltfflrz"},"datePublished":"2020-12-05T23:59:26.582Z","dateModified":"2021-10-07T14:17:10.317Z","description":"This is my latest post that will increase your efficiency and productivity when coding JavaScript. There are many ways to write code but generally the first...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f4bb83932461398040fca2a71912978e","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f4bb83932461398040fca2a71912978e","isAccessibleForFree":true,"articleSection":"Hacker Noon","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":"Hacker Noon","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hackernoon","url":"https://daily.dev/sources/hackernoon"},"commentCount":5,"discussionUrl":"https://daily.dev/posts/17-interesting-javascript-tricks-myltfflrz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":24},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":5}],"keywords":"javascript"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker Noon","item":"https://daily.dev/sources/hackernoon"},{"@type":"ListItem","position":3,"name":"17 Interesting JavaScript Tricks"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/17-interesting-javascript-tricks-myltfflrz","comment":[{"@type":"Comment","text":"I’m not a fan of the word “Noob” when referencing a beginner. Yes the word noob does mean “newbie” =&gt; “beginner”. However over the years the term “noob” has almost always exclusively been used as an insult to point out that someone is bad at a certain task. The developer community is already filled with people suffering from imposter syndrome, no need to make these people feel even worse. Therefore I always prefer the word “beginner” rather than the insulting word “noob”.","datePublished":"2020-12-06T04:38:04.492Z","url":"https://daily.dev/posts/mYlTffLRZ#c-B7YvSiFTZ","author":{"@type":"Person","name":"Aedan","url":"https://daily.dev/aedan","image":"https://avatars3.githubusercontent.com/u/26481713?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6}},{"@type":"Comment","text":"There is a couple of bugs in code snippets provided in article.","datePublished":"2020-12-08T13:56:51.604Z","url":"https://daily.dev/posts/mYlTffLRZ#c-863dMbWa6","author":{"@type":"Person","name":"dusan brnic","url":"https://daily.dev/dusansen","image":"https://lh3.googleusercontent.com/-EWSGA_TIgmQ/AAAAAAAAAAI/AAAAAAAAAAA/AMZuuck2cX67yCONFxl4GEfrqt9oGzOO4Q/s100/photo.jpg"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"There are some good tips but this article contains some errors on examples… Be careful","datePublished":"2020-12-09T16:16:39.259Z","url":"https://daily.dev/posts/mYlTffLRZ#c-NsId40H2A","author":{"@type":"Person","name":"Valentin Bourqui","url":"https://daily.dev/valentinb","image":"https://avatars1.githubusercontent.com/u/1089835?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Thanks for this article. I realize I doing some beginner tips over the years haha","datePublished":"2020-12-06T13:55:12.224Z","url":"https://daily.dev/posts/mYlTffLRZ#c-haA2XQTPR","author":{"@type":"Person","name":"Alfred Dagenais","url":"https://daily.dev/alfreddagenais","image":"https://avatars1.githubusercontent.com/u/5769264?v=4"}}]}
```

