JavaScript property access: dot notation vs. brackets?

(Sourced from here.) Square bracket notation allows the use of characters that can’t be used with dot notation: var foo = myForm.foo[]; // incorrect syntax var foo = myForm[“foo[]”]; // correct syntax including non-ASCII (UTF-8) characters, as in myForm[“ダ”] (more examples). Secondly, square bracket notation is useful when dealing with property names which vary in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)