4

I know you can't do

var foo = {};
foo.✈ = "NOT VALID";

but you can do

var foo = {};
foo["✈"] = "VALID";

foo["✈"] definitely makes a property of foo and can definitely be used like a variable but, technically speaking, is a "variable"?

user1873073
  • 3,580
  • 5
  • 46
  • 81

1 Answers1

0

no. ✈ in your array is not a variable. it is exactly ✈

you may make it a variable if you wnat though.

var ✈ = "something";

is perfectly fine

Pellmellism
  • 380
  • 1
  • 11