<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/javascript-shorthand-techniques-ultimate-cheat-sheet-ekmeovg8b" -->

---
title: JavaScript Shorthand Techniques — Ultimate Cheat-Sheet
description: Learn JavaScript shorthand techniques, including the Ternary Operator, short-circuit evaluation, default parameter values, object property shorthand,...
canonical: https://daily.dev/posts/javascript-shorthand-techniques-ultimate-cheat-sheet-ekmeovg8b
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: JavaScript Shorthand Techniques — Ultimate Cheat-Sheet | daily.dev
og:description: Learn JavaScript shorthand techniques, including the Ternary Operator, short-circuit evaluation, default parameter values, object property shorthand,...
og:url: https://daily.dev/posts/javascript-shorthand-techniques-ultimate-cheat-sheet-ekmeovg8b
og:image: https://api.daily.dev/og/posts/EkmeOvG8B.png
og:image:alt: JavaScript Shorthand Techniques — Ultimate Cheat-Sheet
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 Shorthand Techniques — Ultimate Cheat-Sheet

**[Medium](https://daily.dev/sources/medium_js)** · 4 min read · 237 upvotes · 19 comments

## Summary

Learn JavaScript shorthand techniques, including the Ternary Operator, short-circuit evaluation, default parameter values, object property shorthand, destructuring assignment, arrow functions, template literals, and array methods.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://lokesh-prajapati.medium.com/javascript-shorthand-techniques-ultimate-cheat-sheet-415d9abbe47c?source=rss------javascript-5>

## Community discussion

Top comments from developers on daily.dev.

**@fabooy961** · 7 upvotes

> Imao ur missing one. When checking a condition and either return a result/function or null (imao close to the ternary operator #1):
>
> ```javascript
> value && doSomething(value)
>
> // instead of using
> value ? doSomething(value) : null
> ```
>
> but nice summarization on the rest :) thx!

**@hybit** · 3 upvotes

> Can't stress enough the value of map, filter and reduce, especially paired with Object.keys/values/entries. A must-learn.

**@kelmadics** · 2 upvotes

> Nice for the newbs ;) thanks

**@imessenger98** · 2 upvotes

> If you're a beginner in JavaScript, it's important to understand that arrow functions have a different behavior for binding the "this" keyword compared to regular function expressions.

**@ak000ay** · 0 upvotes

> Under rated operator : Nullish coalescing operator (??)

## 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/javascript-shorthand-techniques-ultimate-cheat-sheet-ekmeovg8b)

```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 Shorthand Techniques — Ultimate Cheat-Sheet","url":"https://daily.dev/posts/javascript-shorthand-techniques-ultimate-cheat-sheet-ekmeovg8b","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/javascript-shorthand-techniques-ultimate-cheat-sheet-ekmeovg8b"},"datePublished":"2023-06-01T11:22:29.728Z","dateModified":"2024-04-12T09:11:23.985Z","description":"Learn JavaScript shorthand techniques, including the Ternary Operator, short-circuit evaluation, default parameter values, object property shorthand,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4ecc1e6e6a8b7d4e257375a1cca616c1?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4ecc1e6e6a8b7d4e257375a1cca616c1?_a=AQAEufR","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":19,"discussionUrl":"https://daily.dev/posts/javascript-shorthand-techniques-ultimate-cheat-sheet-ekmeovg8b","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":237},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":19}],"keywords":"javascript","timeRequired":"PT4M"}
{"@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":"JavaScript Shorthand Techniques — Ultimate Cheat-Sheet"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/javascript-shorthand-techniques-ultimate-cheat-sheet-ekmeovg8b","comment":[{"@type":"Comment","text":"Imao ur missing one. When checking a condition and either return a result/function or null (imao close to the ternary operator #1):\nvalue &amp;&amp; doSomething(value)\n\n// instead of using\nvalue ? doSomething(value) : null\n\nbut nice summarization on the rest :) thx!","datePublished":"2023-06-06T10:14:46.156Z","url":"https://daily.dev/posts/EkmeOvG8B#c-6BIPZCoXo","author":{"@type":"Person","name":"Le Fä De Le Lö","url":"https://daily.dev/fabooy961","image":"https://media.daily.dev/image/upload/v1677218265/avatars/avatar_H6lLM2y9S4Yf8VCWicpd8.jpg"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7}},{"@type":"Comment","text":"Can’t stress enough the value of map, filter and reduce, especially paired with Object.keys/values/entries. A must-learn.","datePublished":"2023-06-07T21:24:03.124Z","url":"https://daily.dev/posts/EkmeOvG8B#c-aS4Yss9pf","author":{"@type":"Person","name":"Tobias von Essen","url":"https://daily.dev/hybit","image":"https://media.daily.dev/image/upload/s--yhbn5KQl--/f_auto,q_auto/v1/avatars/avatar_5bfNK4zyHWgHijxrHSQUo"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"Nice for the newbs ;) thanks","datePublished":"2023-06-07T12:29:59.608Z","url":"https://daily.dev/posts/EkmeOvG8B#c-59SBbI3UC","author":{"@type":"Person","name":"Kel Madics","url":"https://daily.dev/kelmadics","image":"https://lh3.googleusercontent.com/a-/AFdZucrZ6DrSLXcN6WyUlIzR5J66YkAzZbR4ejYCnN5fkA=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"If you’re a beginner in JavaScript, it’s important to understand that arrow functions have a different behavior for binding the “this” keyword compared to regular function expressions.","datePublished":"2023-06-09T10:44:45.067Z","url":"https://daily.dev/posts/EkmeOvG8B#c-2ndu1yzL5","author":{"@type":"Person","name":"YAZI","url":"https://daily.dev/imessenger98","image":"https://media.daily.dev/image/upload/s--NHChiPF0--/f_auto/v1750326890/avatars/avatar_OWJw3rYdeL18DliMJccZU?_a=BAMClqZW0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Under rated operator : Nullish coalescing operator (??)","datePublished":"2023-06-29T08:26:39.805Z","url":"https://daily.dev/posts/EkmeOvG8B#c-m8WfekyzS","author":{"@type":"Person","name":"Akshay","url":"https://daily.dev/ak000ay","image":"https://media.daily.dev/image/upload/s--MPrS4GXA--/f_auto,q_auto/v1/avatars/avatar_RSxtIJTS5Ly9ahlxbBM4T"}}]}
```

