Mathias Bynens 3/5/2012

Unquoted property names / object keys in JavaScript

Read Original

This technical article delves into the specifics of JavaScript object property names, explaining when quotes are required or can be omitted. It covers valid property name types (identifier names, string literals, numeric literals), their string coercion, and the differences between dot and bracket notation access, referencing the ECMAScript specification.

Unquoted property names / object keys in JavaScript

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week