Some stuff for me to learn.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types#Object_literals

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment

My initial reaction to some of those examples is stunned disbelief. Why would you want to allow defining a property whose name is an empty string, an exclamation mark, or a number? And why would you use array syntax, [], for those, when they aren't arrays? So that "car[7]" is not necessarily the 7th item in a car array, but might be a car property by the name of 7?

Yeah. How fun.
A Survey of the JavaScript Programming Language - a very good high-level overview of JavaScript, for programmers who are already familiar with other languages.

I thought I was already fairly knowledgeable about JavaScript, but it has many neat features that I wasn't previously aware of.

Profile

djinncoyote

May 2025

S M T W T F S
    123
45678910
11121314151617
181920 21222324
25262728293031

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags