When to quote JavaScript array keys?

I have stumbled upon a question: when you should quote JavaScript associative array keys. From this article you will learn, when you should quote and when not.

What are associative arrays in JavaScript?

JavaScript has an associative array. The difference between it and associative arrays in other languages is that… it is not precisely an array. In…

--

--

--

Follow me, if you want to become 10x Developer. I am sharing tips based on 20 years of coding, that gave me a satisfactory career and balanced life.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Arrow Functions in JavaScript😊

Array Methods #2

TESTTTT -3

5 Ways to Lazy Load React Components

Group Project (ReactJS + ExpressJS + MongoDB + NodeJS)

Javascript for beginners: clz32 method

Interview questions for Javascript developer(Epam S

Authentication of Azure AD with Adal.js in NuxtJS

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tom Smykowski

Tom Smykowski

Follow me, if you want to become 10x Developer. I am sharing tips based on 20 years of coding, that gave me a satisfactory career and balanced life.

More from Medium

How JavaScript Works: Explained In Simple Terms for Beginner Developers

10 Important Array Methods In JavaScript Explained

10 JavaScript One-Liner Gems 💎

Understanding Arrow Functions in JavaScript ES6 — Full Guide

Arrow Functions ES6