<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ER6_T9ytd" -->

---
title: Solving a stupid JavaScript problem. | daily.dev
description: Alexander Troup explains how to solve a stupid JavaScript problem. He uses Operator Precedence and Associativity to solve the problem. Troup also streamed the...
canonical: https://daily.dev/posts/solving-a-stupid-javascript-problem--er6-t9ytd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Solving a stupid JavaScript problem. | daily.dev
og:description: Alexander Troup explains how to solve a stupid JavaScript problem. He uses Operator Precedence and Associativity to solve the problem. Troup also streamed the...
og:url: https://daily.dev/posts/solving-a-stupid-javascript-problem--er6-t9ytd
og:image: https://api.daily.dev/og/posts/ER6_T9ytd.png
og:image:alt: Solving a stupid JavaScript problem.
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.

# Solving a stupid JavaScript problem.

**[Medium](https://daily.dev/sources/medium_js)** · 11 min read · 17 upvotes · 1 comments

## Summary

Alexander Troup explains how to solve a stupid JavaScript problem. He uses Operator Precedence and Associativity to solve the problem. Troup also streamed the process of solving this problem on Twitch.com. The full article can be found at: http://www.joshtroup.com/solve-a-stupid-js-problem.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/@AlexanderTroup/solving-a-stupid-javascript-problem-aa54e26e3605>

## Community discussion

Top comments from developers on daily.dev.

**@gagantaneja** · 0 upvotes

> 163

---

Tags: [#c](https://daily.dev/tags/c), [#general-programming](https://daily.dev/tags/general-programming), [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/solving-a-stupid-javascript-problem--er6-t9ytd)

```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":"Solving a stupid JavaScript problem.","url":"https://daily.dev/posts/solving-a-stupid-javascript-problem--er6-t9ytd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/solving-a-stupid-javascript-problem--er6-t9ytd"},"datePublished":"2020-10-19T03:47:14.953Z","dateModified":"2026-03-15T05:23:53.864Z","description":"Alexander Troup explains how to solve a stupid JavaScript problem. He uses Operator Precedence and Associativity to solve the problem. Troup also streamed the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/74af711bd7a6f21bd6134c66df2efab6","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/74af711bd7a6f21bd6134c66df2efab6","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":1,"discussionUrl":"https://daily.dev/posts/solving-a-stupid-javascript-problem--er6-t9ytd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":17},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"c,general-programming,javascript","timeRequired":"PT11M"}
{"@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":"Solving a stupid JavaScript problem."}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/solving-a-stupid-javascript-problem--er6-t9ytd","comment":[{"@type":"Comment","text":"163","datePublished":"2020-10-21T15:38:04.847Z","url":"https://daily.dev/posts/ER6_T9ytd#c-0eEaucB_1","author":{"@type":"Person","name":"Gagan taneja","url":"https://daily.dev/gagantaneja","image":"https://lh3.googleusercontent.com/a-/AOh14Gjdd-5aw-zg7_zcJNsyrOXrNp4PI2DvCxP4kuIkHQ=s100"}}]}
```

