---
title: "Discussion on \"Accessing a JavaScript function of an object using [] instead of a dot (.)\" | Hashnode"
description: "Discussion on \"Accessing a JavaScript function of an object using [] instead of a dot (.)\". Today's post is super short and simple and it's probably known to most developers.\nIt's about accessing a function of an object using [] instead of dot (.)\nLet's say you have a condition - if flag is true then use max, if false, use min.\nlet result, ..."
url: "https://hashnode.com/posts/accessing-a-javascript-function-of-an-object-using-instead-of-a-dot/604e069acd951c0ca4c019ff"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Accessing a JavaScript function of an object using \[\] instead of a dot (.)](https://anjanesh.dev/accessing-a-javascript-function-of-an-object-using-instead-of-a-dot?utm_source=hashnode&utm_medium=feed)

Today's post is super short and simple and it's probably known to most developers. It's about accessing a function of an object using \[\] instead of dot (.) Let's say you have a condition - if flag is true then use max, if false, use min. let result, ...

Mar 14, 2021 · 1 min read · anjanesh.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Anjanesh Lekshminarayanan](https://hashnode.com/@anjanesh)

@anjanesh · Navi Mumbai, MH

  
[View profile](https://hashnode.com/@anjanesh)

Web UI Engineer

I am a web consultant from Navi Mumbai. Mainly dealt with LAMP stack, now into Django and getting into Laravel and Cloud. Founder of nerul.in and gaali.in

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
